University of Southern California

ITS Information Technology Services

A division of the Office of the Chief Information Officer

Customizing Your Account

To define environment variables, type:

To define shell variables, type:

You can also put these commands at the bottom of your .login file so they get executed automatically everytime you log in. Alternatively, if your default shell is csh you can put these commands in your .cshrc file. If your default shell is tcsh and you have created a .tcshrc, you can put these commands in that file.

Some applications require some customization of your account in order to work correctly. These applications have a setup you can source which will set your path, man path, library path and other variables as appropriate. To source a setup file, type:

Note: If you use a Bourne shell instead of a csh shell, you will want to source the setup file that ends in .sh instead of .csh.

You can also put these commands in your .login file so they get executed automatically everytime you log in. However, you will want to qualify them as follows so that they are only executed if the file actually exists:

Example:

if (-e /usr/usc/stats/setup.csh) then source /usr/usc/stats/setup.csh endif if (-e /usr/usc/tex/default/setup.csh) then source /usr/usc/tex/default/setup.csh endif if (-e /usr/spac/sparcompilers/default/setup.csh) then source /usr/spac/sparcompilers/default/setup.csh endif

You will find most setup files at the following location:

Last updated:
October 16, 2008

UNIX Documentation

The use of all USC computing resources is governed by the USC Computing Policies.