Tcsh: Difference between revisions

From UMIACS
Jump to navigation Jump to search
No edit summary
 
Line 13: Line 13:
   setenv PATH ${PATH}:/my/new/path
   setenv PATH ${PATH}:/my/new/path


By moving around the ${PATH} you can put the path at the front of the list or the back.
By moving around the ${PATH} you can put the path at the front of the list or the back as the programs are looked up left to right in the path.

Revision as of 14:41, 28 September 2011

Confiruation Files

Tcsh has two main configuration files either ~/.tcshrc or ~/.cshrc in addition to the ones provided by the operating system. It will source ~/.tcshrc first if it is found and if not then ~/.cshrc.

Please the MAN page by typing man tcsh for a complete explanation of features.

Paths

You can see your current paths (colon separated list) by the typing the following in your terminal.

 echo $PATH

You can add additional paths by using the following command

 setenv PATH ${PATH}:/my/new/path

By moving around the ${PATH} you can put the path at the front of the list or the back as the programs are looked up left to right in the path.