首页 > 其他 > 详细

/etc/profile和~/.bash_profile的区别

时间:2016-03-11 11:35:48      阅读:226      评论:0      收藏:0      [点我收藏+]

    /etc/profile是全局的,是私有的

/etc/profile用于整个系统所有用户, ~/.bash_profile, ~/.profile和~/.bashrc 用于各个用户,这里的"~"符号就是各当前用户的$HOME
~/.bash_profile 和 ~/.profile 只在登陆时读取一次。
~/.bashrc 每次都读取
~/.bash_profile 和 ~/.profile 的区别在于,bash 只读取~/.bash_profile;而对于 ~/.profile 来说,不光bash, 其他shell 也读 ~/.profile

/etc/profile和~/.bash_profile的区别

原文:http://www.cnblogs.com/lianghe01/p/5264551.html

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