用chsh命令
#-v 可以显示shell版本
# chsh -v
util-linux 2.13-pre6
#-l 显示可用的shell
# chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
#更改默认shell:
# chsh
Changing shell for root.
New shell [/bin/bash]: /bin/bash
Shell not changed.
#我就没改了,如果改,参考-l 参数之后进行相应的更改。此操作一定要慎重。
引用:http://zhidao.baidu.com/question/97053720.html
#-v 可以显示shell版本
# chsh -v
util-linux 2.13-pre6
#-l 显示可用的shell
# chsh -l
/bin/sh
/bin/bash
/sbin/nologin
/bin/tcsh
/bin/csh
/bin/ksh
#更改默认shell:
# chsh
Changing shell for root.
New shell [/bin/bash]: /bin/bash
Shell not changed.
#我就没改了,如果改,参考-l 参数之后进行相应的更改。此操作一定要慎重。
引用:http://zhidao.baidu.com/question/97053720.html