bash: Environment file order.



  • Take into account the main readme for this section. README first.

    For more information also see: https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files

    Tilde ~ mean your $HOME

    The order the bash environment files are read for an interactive login shell.

    1. /etc/profile
    2. ~/.bash_profile
    3. ~/.bash_login
    4. ~/.profile

    On exit this file is invoked.

    ~/.bash_logout

    The order the bash environment files are read for an interactive non-login shell.

    ~/.bashrc

    There are bash options to change the functionality, see the GNU documenation in the link above.


Log in to reply
 

© Lightnetics 2024