| C Shell |
C Shell Files
There are three special c shell files: .cshrc, .login and .logout. The
.cshrc file is executed each time a c shell is created. The .login file
is executed once, at login. The .logout file is executed once, at logout.
Below is an example of a .cshrc file.
set path=(/usr/bin /bin /usr/local/bin .) set manpath=(/usr/man /usr/local/man)
tset -I -Q umask 077
clear
For more information on the c shell try man csh.
C Shell Commands
| C Shell Command | Action |
|---|---|
| alias [name][command] | Assign name as the alias for [command] |
| bg | Place the current job in the background |
| echo [-n] string | Write string to standard output |
| exec command | Execute command in place of current shell |
| exit [(expr)] | Exit shell |
| fg option | Place the job listed in option in the foreground as the current job |
| history | Display a list of history events |
| jobs [options] | List all active jobs |
| kill [options] pid | Terminate the disignated process pid |
| rehash | Recompute the hash table for path |
| repeat n command | Execute n instances of command |
| set [variable [n] [=value]] | Set variable to value |
| setenv name value | Set the value of name to be value |
| source file | Read commands from file |
| stop [option] | Stop the current or specified job executing in the background |
| suspend | Stop the shell |
| unalias name | Remove name from the alias list |
| unsetenv name | Remove enviromental variables that match name |