Quick Start Guide:Tcsh
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]
Syntax
Here is a brief outline of common syntax issues.
Login/Logout Scripts
- .tcshrc
- .cshrc
- .login
- .logout
Aliases
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
References
- ↑ tcsh official website
- ↑ tcsh article at Wikipedia
- ↑ CSH Programming Considered Harmful, by Tom Christiansen <tchrist@mox.perl.com>, 1996