linux配置加载顺序

linux加载配置项时通过下面方式 

 

首先 加载/etc/profile配置

然后 加载/ect/profile.d/下面的所有脚本

然后 加载当前用户 .bash_profile

然后 加载.bashrc

最后 加载 [/etc/bashrc]

 

/etc/profile → /etc/profile.d/*.sh → ~/.bash_profile → ~/.bashrc → [/etc/bashrc]

posted @ 2016-12-22 15:51  星火spark  阅读(380)  评论(0编辑  收藏  举报