home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam    

5.7 Invoking the Shell

The C shell command interpreter can be invoked as follows:

csh  [options
]  [arguments

csh executes commands from a terminal or a file. Options -n , -v , and -x are useful when debugging scripts.

The following list details the options:


Allow the remaining command-line options to be interpreted as options to a specified command, rather than as options to csh itself.


Treat the first argument as a string of commands to execute. Remaining arguments are available via the argv array.


Exit if a command produces errors.


Fast startup; start csh without executing .cshrc or .login .


Invoke interactive shell (prompt for input).


Parse commands but do not execute.


Read commands from the standard input.


Exit after executing one command.


Display commands before executing them; expand history substitutions but don't expand other substitutions (e.g., filename, variable, and command). Same as setting verbose .


Same as -v , but also display .cshrc .


Display commands before executing them, but expand all substitutions. Same as setting echo . -x is often combined with -v .


Same as -x , but also display .cshrc .

Previous: 5.6 Job Control UNIX in a Nutshell: System V Edition Next: 5.8 Built-in C Shell Commands
5.6 Job Control Book Index 5.8 Built-in C Shell Commands

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System