/etc/profile和/root/.bash_profile有什么区别
/etc/profile,优先级最高,是全局的,是私有的,用于整个系统所有用户,
~/.bashrc和 ~/.bash_profile, ~/.profile 用于各个用户,这里的"~"符号就是各当前用户的$HOME
~/.bash_profile 和 ~/.profile 只在登陆时读取一次。
~/.bashrc 每次都读取
~/.bash_profile 和 ~/.profi...
原创
2017-11-19 21:37:40 ·
956 阅读 ·
0 评论