Shell study notes 03 - Linux environment variables

Positioning system environment variables

Three ways to start the bash shell :

  1. As a default login shell when log
  • The default on the / etc / profile bash shell system master boot file, every user on the system will execute the startup file when landing
  • $HOME/.bash_profile
  • $HOME/.bashrc
  • $HOME/.bash_login
  • $HOME/.profile
  1. As a non-interactive shell login shell
  2. As a non-interactive shell running the script
Published 336 original articles · won praise 331 · Views 100,000 +

Guess you like

Origin blog.csdn.net/zym326975/article/details/103060674