Linux environment configs

Term:  login shell => the current bash you had typed in account&password to login

  • /etc/profile : Only read by "login shell"

    • /etc/profile.d/*.sh : Auto-load all the *.sh.

    • /etc/locale.conf : Which language to use.

    • /usr/share/bash-completion/completions/* : For keyboard "Tab" functions. 

  • ~/.bash_profile : Only read by "login shell", execute by order. (Mac OS X use it to replace ~/.bashrc)

    1. ~/.bash_profile : found then stop next

    2. ~/.bash_login : found then stop next

    3. ~/.profile : found then stop next

  • ~/.bashrc : Non-login shell

Leave a Reply

Your email address will not be published.