Open main menu

CDOT Wiki β

Changes

Tutorial12: Shell Scripting - Part 2

817 bytes added, 09:40, 27 July 2020
Using Startup Files
===Using Startup Files===
xShell 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� 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=
13,420
edits