Initialization Files

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.

Table 6.5. Initialization Files
Fileshcshksh
Login initialization file$HOME/.profile$HOME/.login$HOME/.profile
Shell startup fileN/A$HOME/.cshrcUser-defined
Logout fileN/A$HOME/.logoutN/A

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 ...

Get Solaris™ 8 System Administrator Exam Cram™ 2 (Exams CX-310-011 and CX-310-012) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.