/home/username/.profile或.bash_profile,都是隐藏文件,需要使用ls -a才能看到。
Bash登陆(login)的时候,Profile执行的顺序
1)先执行全局Profile, /etc/profile
2) 接着bash会检查使用者的HOME目录中,是否有 .bash_profile 或者 .bash_login或者 .profile,若有,则会执行其中一个,执行顺序为:
.bash_profile 最优先 > .bash_login其次 > .profile 最后
转载请注明出处:http://blog.csdn.net/pan_tian/article/details/7711489
======EOF======