Start-up

When you first log in, the shell looks for the files '.cshrc' and '.login' and executes the commands in those files. These files make it possible for you to tailor your working environment to your specifications and to ensure that environment is always the same.

Why two files? The commands in '.login' are executed only when you log into the system. It sets up your terminal type and performs other one-time tasks. The commands in '.cshrc' are executed every time a new shell is started up, like when you fork out of a program back to the shell.

When you log out (by typing "logout"), the shell will run the commands in your '.logout' file.

Click here to go to the next section.

Or click here to go to the top of the chapter.