bash的环境配置文件

一般来说,login shell其实只会读取两个配置文件:
1)/etc/profile 这是系统整体的设置,最好不要修改这个文件
2)~/.bash_profile 或 ~/.bash_login 或 ~/.profile 属于用户个人设置,你要改自己的数据,就写入这里。
在login shell的bash环境中,所读取的个人偏好配置文件的 顺序依次是:
1. ~/.bash_profile
2. ~/.bash_login
3. ~/.profile
bash的login shell设置只会读取上面三个文件的其中一个!

猜你喜欢

转载自wang-2011-ying.iteye.com/blog/2013519
今日推荐