chsh(change shell)
chsh(change shell)功能说明:更换登入系统时使用的shell。
语 法:chsh [-luv][-s <shell 名称>][用户名称]
补充说明:每位用户在登入系统时,都会拥有预设的shell环境,这个指令可更改其预设值。若不指定任何参数与用户名称,则chsh会以应答的方式进行设置。
参 数:
-s<shell 名称>或--shell<shell 名称> 更改系统预设的shell环境。
-l或--list-shells 列出目前系统可用的shell清单。
-u或--help 在线帮助。
-v或-version 显示版本信息。
chsh
chsh [options] [username]
Change your login shell, either interactively or on the command line. Warn if shell does not exist in /etc/shells. Specify the full path to the shell. chsh prompts for your password. Only a privileged user can change another user's shell.
Options
Print valid shells, as listed in /etc/shells, and then exit.
Specify new login shell.
Print help message and then exit.
Print version information and then exit.
Example
chsh -s /bin/tcsh