Linux chsh command
Linux chsh command changes the user shell settings.
Access: All users.
grammar
shell>> chsh
Examples
shell>> chsh Changing fihanging shell for user1 Password: [del] New shell [/bin/tcsh]: ### [是目前使用的 shell] [del] shell>> chsh -l ### 展示 /etc/shells 档案内容 /bin/bash /bin/sh /bin/ash /bin/bsh /bin/tcsh /bin/csh
Change the current shell. The current shell set // bin / bash, by chsh command to change shell settings / bin / csh.
# chsh Changing shell for root. New shell [/bin/bash]: /bin/csh //输入新的shell地址 Shell changed.
Change the current shell set by the -s parameter
# chsh -s /bin/csh //改变当前设置为 /bin/csh Changing shell for root. Shell not changed.