|
Every time you log in, the Unix shell searches your home directory for certain files and executes the commands in them. This allows you to customize your Unix session.
The .cshrc file is executed every time a new C shell is started. The .login is executed after the .cshrc file only when you initially log in. Generally, environment variables should be set in the .login file, and alias and set commands should be in the .cshrc file so that every new copy of the C shell will be able to use them.
The .profile is specific to the bourne and Korn shells and serves the same purpose. Not all shells use the same startup files. For instance, bash uses .bash_profile
Your default shell is set by the unix admin for your site. This is done by setting the 7th field in the /etc/passwd file. If you want your default shell changed then contact the admin and make that request.
You can also change your shell from the command line by typing the shells name. For exampe: ksh (however this only lasts for the duration of your current shells session).
|