chsh 用于 改变 用户的 登录 shell. 如果 没有在 命令行上 指定 shell, chsh 能够 做出 提示.
-s, --shell
指定 用户的 登录 shell.
-l, --list-shells
显示 /etc/shells 中的 shell 列表, 然后退出.
-u, --help
显示 使用方法, 然后退出.
-v, --version
显示 版本信息, 然后退出.
[root@localhost ~]# chsh #必变当前用户的shell Changing shell for root. New shell [/bin/bash]: /bin/csh #输入新的shell地址 Shell changed. [root@localhost ~]# chsh -s /bin/csh #改变当前用户shell,设置为 /bin/csh Changing shell for root. Shell not changed.
评论(0)
暂无评论