Bash Invocation of non-login shells: Which configuration Files?
According to the LPIC-1/CompTIA Linux+ Certification All-in-One Exam Guide:
However, according to the following: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html#Bash-Startup-FilesIf you’re using a non-login shell, things are pretty straightforward. The bash shell simply runs /etc/bashrc for system-wide functions and aliases, and then it runs ∼/.bashrc from the user’s home directory for user-specific customizations.
The above is in conflict. Does Bash execution the /etc/bashrc file prior to the ∼/.bashrc or not? What script could I look at to verify this?When an interactive shell that is not a login shell is started, Bash reads and executes commands from ~/.bashrc, if that file exists.
If you like my comments or questions, you can show appreciation by clicking on the reputation badge/star icon near the lower left of my post.