bash环境变量读取顺序

bash环境变量读取顺序:

交互式登录的用户:
/etc/profile --> /etc/profile.d/*.sh --> ~/.bash_profile --> ~/.bashrc --> /etc/bashrc


非交互式登录的用户:
 ~/.bash_profile --> ~/.bashrc --> /etc/bashrc --> /etc/profile.d/*.sh

 

posted @ 2016-05-01 15:24  xiluhua  阅读(474)  评论(0编辑  收藏  举报