(M)  s i s t e m a   o p e r a c i o n a l   m a g n u x   l i n u x ~/ · documentação · suporte · sobre

 

3.23. Files

  • /etc/profile

    systemwide defaults, mostly setting the environment (all shells, not just Bash)

  • /etc/bashrc

    systemwide functions and and aliases for Bash

  • $HOME/.bash_profile

    user-specific Bash environmental default settings, found in each user's home directory (the local counterpart to /etc/profile)

  • $HOME/.bashrc

    user-specific Bash init file, found in each user's home directory (the local counterpart to /etc/bashrc). Only interactive shells and user scripts read this file. See Appendix C for a sample .bashrc file.

These are the startup files for Bash. They contain the aliases (see Section 3.20) and environmental variables made available to Bash running as a user shell and to all Bash scripts invoked after system initialization.