Several initialization (or startup) files are associated with each user account home directory (identified by the $HOME environment parameter). These files specify commands to be executed when the associated event occurs. Depending on the login shell being used, a login initialization file, a shell startup file, or a logout file can exist. Table 6.5 lists the various initialization files.
|Login initialization file||$HOME/.profile||$HOME/.login||$HOME/.profile|
|Shell startup file||N/A||$HOME/.cshrc||User-defined|
Commands in the login initialization file are executed when the user logs in. All three common shells provide a login initialization file. Commands in the ...