首页 > 其他 > 详细

bash环境变量读取顺序

时间:2016-05-01 16:16:16      阅读:135      评论:0      收藏:0      [点我收藏+]

bash环境变量读取顺序:

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


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

 

bash环境变量读取顺序

原文:http://www.cnblogs.com/xiluhua/p/5450575.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!