User Account Initialization Files

Several initialization (or startup) files are associated with each user account home directory. These files are used to specify commands to be executed when the associated event occurs. Depending on the login shell being used (Bourne Shell, C Shell, or Korn Shell), there might be a login initialization file, a shell startup file, or a logout file. Table 3.8 lists the various initialization files.

Table 3.8. Initialization Files
FileBourne (sh)C (csh)Korn (ksh)
Login initialization file.profile.login.profile
Shell startup initialization fileN/A.cshrcuser-defined
Logout fileN/A.logoutN/A

Commands in the login initialization file are executed when the user logs in. All three common shells provide a login initialization ...

Get Solaris™ 9 System Administrator Exam Cram™ 2 (Exams 310-014 and 310-015) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.