名字 (NAME)
chsh - 改变登录 shell
总览 (SYNOPSIS)
chsh [ -s shell ] [ -l ] [ -u ] [ -v ] [ username ]
描述 (DESCRIPTION)
chsh 用于 改变 用户的 登录 shell. 如果 没有在 命令行上 指定 shell, chsh 能够 做出 提示.
有效的 SHELL (VALID SHELLS)
chsh 接受 系统中 任何 可执行文件 的 全路径名称. 然而, 如果 它们 没有 在 /etc/shells 中 列举, chsh 将 发出 警告. 另一方面, 可以 把 chsh 配置成 只接受 这个文件中列举的 shell, 除非 你是 超级用户.
选项 (OPTIONS)
- -s, --shell
- 指定 用户的 登录 shell.
- -l, --list-shells
- 显示 /etc/shells 中的 shell 列表, 然后退出.
- -u, --help
- 显示 使用方法, 然后退出.
- -v, --version
- 显示 版本信息, 然后退出.
另见 (SEE ALSO)
login(1), passwd(5), shells(5)
#p#
NAME
chsh - change your login shell
SYNOPSIS
chsh [ -s shell ] [ -l ] [ -u ] [ -v ] [ username ]
DESCRIPTION
chsh is used to change your login shell. If a shell is not given on the command line, chsh prompts for one.
VALID SHELLS
chsh will accept the full pathname of any executable file on the system. However, it will issue a warning if the shell is not listed in the /etc/shells file. On the other hand, it can also be configured such that it will only accept shells listed in this file, unless you are root.
OPTIONS
- -s, --shell
- Specify your login shell.
- -l, --list-shells
- Print the list of shells listed in /etc/shells and exit.
- -u, --help
- Print a usage message and exit.
- -v, --version
- Print version information and exit.
SEE ALSO
login(1), passwd(5), shells(5)