Quick Start Guide:Tcsh

From Deac Wiki
Jump to navigation Jump to search

tcsh is the Tenex C Shell.[1][2]

We highly recommend users login to bash, and switch to tcsh only when necessary. Scripts should also be written in bash rather than tcsh.[3]


Here is a brief outline of common syntax issues.

Login/Logout Scripts

  • .tcshrc
  • .cshrc
  • .login
  • .logout


The syntax for defining aliases is:

   alias ls 'ls -FC --color=auto'
   alias l  'ls'
   alias ll 'l -l'
   alias la 'll -a'

Environment Variables

The syntax for defining environment variables is:

   setenv SPECIAL_ENV some_string_or_other
   setenv VERY_SPECIAL_ENV ${SPECIAL_ENV}:another_string

See Also

  • The man page is comprehensive and definitive