Appendix B. csh and tcsh Quick Reference
In This Appendix:
Command Structure
Startup and Shutdown Files
Variables
Special Characters
Command History
Moving Around the File System
Aliases
Filename Completion
Programmed Completion
Job Control
Command Editing in tcsh
This appendix briefly summarizes shell features and characteristics. Examples and additional commentary may be found elsewhere in this handbook. See also the csh and tcsh manual pages.
Command Structure
A simple command (designated cmd
below) consists of a command name, possibly followed by one or more arguments. This basic form may be modified or combined with other commands to form more complex command sequences:
cmd
Runcmd
cmd
& Runcmd
in the backgroundcmd
>file
Writecmd
output tofile
(overwritesfile
)cmd
>>file
Writecmd
output tofile
(appends tofile
)cmd
<file
Takecmd
input fromfile
cmd1
;cmd2
Runcmd1
, thencmd2
cmd1
|cmd2
Writecmdl
output to input ofcmd2
(cmd1
;cmd2
) Runcmdl
cmdcmd2
in subshellcmd1 'cmd2'
Usecmd2
to produce arguments forcmd1
Get Using csh & tcsh now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.