摘要: 在登录Linux时要执行文件的过程如下:在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile、 ~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile、 ~/.bash_login、 ~/.profile。如果 ~/.bash_profile文件存在的话,一般还会执行 ~/.bashrc文件。因为在 ~/.bash_profile文件中一般会有下面的代码:if [ -f ~/.bashrc ] ; then . ./bashrcfi~/.bashrc中,一般还会有以下代码 阅读全文
posted @ 2012-09-06 14:32 doupip 阅读(2744) 评论(0) 推荐(1) 编辑