Bash Shell的配置文件
/etc/bashrc 文件
/etc/profile 文件
/etc/profile.d 目录
~/.bashrc 文件
~/.bash_profile 文件
切换不同的类型和版本的Shell
通过配置文件修改用户的Shell
- /etc/passwd
- /etc/shells
[root@localhost /]# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/bin/tcsh
通过命令自定义切换
- chsh命令
[root@localhost /]# chsh allen
Changing shell for allen.
New shell [/bin/bash]: /bin/tcsh
Shell changed.
[root@localhost /]# grep allen /etc/passwd
allen:x:1000:1000:allen:/home/allen:/bin/tcsh
来源:https://blog.csdn.net/up1292/article/details/102756885