Shell学习1:Bash Shell环境说明

落爺英雄遲暮 提交于 2019-12-02 11:38:13

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

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!