Bash Configuration Files
Jump to navigation
Jump to search
External
- https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
- https://bencane.com/2013/09/16/understanding-a-little-more-about-etcprofile-and-etcbashrc/
Internal
Overview
This article describes how bash executes its startup files. If any of the files exist, but cannot be read, bash reports an error.
Interactive Login Shell
This sequence is executed by an interactive login shell, or a shell that was invoked with --login
:
├─→ /etc/profile ─→ /etc/profile.d/*.sh │ │ └─→ ~/.bash_profile ─→ ~/.bash_login ─→ ~/.profile
Interactive Non-Login Shell
Non-Interactive Shell
Invoked with the name "sh"