chsh 中文man頁面
名字 (NAME)
chsh - 改變登錄 shell
總覽 (SYNOPSIS)
chsh [ -s shell ] [ -l ] [ -u ] [ -v ] [ username ]
描述 (DESCRIPTION)
chsh 用于 改變 用戶的 登錄 shell. 如果 沒有在 命令行上 指定 shell, chsh 能夠 做出 提示.
有效的 SHELL (VALID SHELLS)
chsh 接受 系統中 任何 可執(zhí)行文件 的 全路徑名稱. 然而, 如果 它們 沒有 在 /etc/shells 中 列舉, chsh 將 發(fā)出 警告. 另一方面, 可以 把 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)