Bash Configuration Files: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
=Interactive Login Shell= | =Interactive Login Shell= | ||
<font size=-1> | <font size=-1> | ||
[[/etc/profile]] → /etc/profile.d/*.sh | ├─→ [[/etc/profile]] → /etc/profile.d/*.sh | ||
│ | |||
│ | |||
└─→ | |||
</font> | </font> | ||
Revision as of 03:58, 22 November 2021
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
├─→ /etc/profile → /etc/profile.d/*.sh │ │ └─→
Interactive Non-Login Shell
Non-Interactive Shell
Invoked with the name "sh"