13,420
edits
Changes
→Using Startup Files
===Using Startup Files===
Shell configuration files are scripts that are run when you log in, log out, or start a new shell. The start-up files can be used, for example, to set the prompt and screen display, create local variables, or create temporary Linux commands (aliases)�
The '''/etc/profile''' file belongs to the root user and is the first start-up file that executes when you log in, regardless of shell�shell.
User-specific config start-up files are in the user's home directory: �'''~/.bash_profile''' runs when you log in '''~/.bashrc''' runs when you start an interactive sub-shell.
Logout Files
There are files that reset or restore the environment or properly shut-down running programs when the user logs out of their shell.�User-specific logout start-up files are in the user's home directory: ��'''~/.bash_logout'''
=INVESTIGATION 1: ADDITIONAL LOGIC STATEMENTS=