13,420
edits
Changes
→Using Startup Files
===Using Startup Files===
'''Shell configuration (start-up) 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.
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 is a file that reset '''resets or restore restores the shell environment or properly ''' (including shut-down of programs running programs in the shell) 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=