bash 配置文件
用户的宿主目录下执行命令:
[xxx@wfsb]$ cd ~ [xxx@wfsb ~]$ ls -rtlh .bash* -rw-r--r-- 1 xxx 510 124 Mar 13 2007 .bashrc -rw-r--r-- 1 xxx 510 176 Mar 13 2007 .bash_profile -rw-r--r-- 1 xxx 510 18 Mar 13 2007 .bash_logout -rw------- 1 xxx 510 17K Apr 10 11:15 .bash_history
这几个文件是用户登录、注销系统时所用到的bash配置文件。
- .bashrc 每次打开新的shell时要执行的命令。
- .bash_profile 用户登入shell时需要执行的命令。
- .bash_logout 用户退出shell时需要执行的命令。
- .bash_history 记录了用户历史输入的命令。
.bash_profile 只在会话开始时被读取一次,而 .bashrc 则在每次打开新的终端时都要被读取。
—————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————



