19.1 Bash Startup and Exit
The command line is orchestrated through the use of a so-called shell which both supports its own set of commands and allows other commands to be utilised within the shell. The Bourne Again SHell (bash) is a widely used and mature shell. It is often the interactive shell (command) that is run when a new terminal is initiated.
When Bash is invoked as an interactive login shell it first reads and
executes commands from the file
/etc/profile, if that file
exists. After reading that file, it looks for
~/.profile, in that order, and reads and executes commands
from the first one that exists and is readable. When a login shell
exits Bash reads and executes commands from the file
~/.bash_logout, if it exists.
Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0