ubuntu启动时profile bash等文件的执行顺序

1、启动时,执行:

      /etc/profile  ------>  /etc/profile.d/ 中的每个文件  ------> /etc/bash.bashrc

2、登录时,执行:

     ~/.profile  (如果~/.bash_profile 或者 ~/.bash_login 文件存在,则不执行~/.profile 文件)  -----> ~/.bashrc


类似于下面的这种调用关系,图片来自于http://www.2cto.com/os/201301/184129.html

ubuntu启动时profile bash等文件的执行顺序_第1张图片


你可能感兴趣的:(ubuntu启动时profile bash等文件的执行顺序)