/etc/rc.d/rc.local 与 /etc/profile .bash_profile .bashrc 文件执行顺序

登陆shell与交互式非登陆shell的区别

登录shell

所谓登录shell,指的是当用户登录系统时所取的那个 shell。登录shell属于交互式shell。 登录shell将查找4个不同的启动文件来处理其中的命令。 bash shell处理文件的顺序如下:

  1. /etc/profile
  2. /etc/profile.d等待配置文件
  3. $HOME/.bash_profile
  4. $HOME/.bash_login
  5. $HOME/.profile

你可能感兴趣的:(操作系统)