Shell setup files like .login and .profile typically do at least the following:
Set theand .
Setthat might be needed by programs or scripts that you typically run.
Run one or more commands that you want to run whenever you log in. For example, if your system login program doesn't show the message of the day, your setup file can. Many people also like to print an amusing or instructive.
You might want to runor for information about the system.
In the C shell, the .cshrc file is used to establish settings that will apply to every instance of the C shell, not just the. For example, you typically want to be available in every interactive shell you run.
Even novices can write simple .profile or .login and .cshrc files. The real trick is to make these setup scripts really work for you. Here are some of the things you might want to try:
Creating a custom prompt (article 7.1).
Coordinating custom setup files on different machines (article 2.13).
Making different terminal settings depending on which terminal you're using (article 2.12).
Seeing the message of the day only when it changes (article 2.15).
Doing all of the above without making your login take forever (article 2.5).