本空间内文章大部分为转载过来的,仅供参考学习。

~/.bash_profile文件说明

上一篇 / 下一篇  2011-03-24 15:36:10

/etc/profile用于整个系统所有用户, ~/.bash_profile, ~/.profile和~/.bashrc 用于各个用户,这里的"~"符号就是各当前用户的$HOME
~/.bash_profile 和 ~/.profile 只在登陆时读取一次。
~/.bashrc 每次都读取

~/.bash_profile 和 ~/.profile 的区别在于

bash 只读取~/.bash_profile;而对于 ~/.profile 来说,不光bash, 其他shell 也读 ~/.profile

 

如要改变用户的当前目前 直接敲好相关命令即可。

查看隐藏文件用 ls -la


TAG:

 

评分:0

我来说两句

Open Toolbar