O'Reilly logo

Linux Shells by Example by Ellie Quigley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10.2. The TC Shell Environment

10.2.1. Initialization Files

After the tcsh program starts, it is programmed to execute a systemwide startup file, /etc/csh.cshrc, and then two shell initialization files in the user's home directory: the .tcshrc file and then the .login file. These files allow users to initialize their own environment.

Example 10.2.
 # /etc/csh.cshrc # System wide environment and startup programs for csh users 1 if ($?PATH) then 2 setenv PATH "${PATH}:/usr/X11R6/bin" else 3 setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" endif 4 if ($?prompt) then 5 [ "$SHELL" = /bin/tcsh ] 6 if ($status == 0) then 7 set prompt='[%n@%m %c]$ ' 8 else 9 set prompt=\[`id -nu`@`hostname -s`\]\$\ 10 endif endif 11 limit coredumpsize 1000000 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required