TCSH(1) General Commands Manual TCSH(1) (NAME) tcsh - C (SYNOPSIS) tcsh [-bcdefFimnqstvVxX] [-Dname[=value]] [arg] ... tcsh -l (DESCRIPTION) tcsh C csh(1) . . ( The command-line editor (+)) ( Completion and listing (+)) ( Spelling correction (+)) ( History substitution) ( Jobs) C . NEW FEATURES (+) tcsh csh(1) . tcsh csh(1) ( 4.4BSD csh(1)) `(+)' csh(1) `(u)' . ( ) `-' (login shell) . -l . : -b " (break)" . . . set-user ID . -c ( ) command . argv . -d ~/.cshdirs . (+) -Dname[=value] name value . ( Domain/OS) (+) -e . -f . -F vfork(2) fork(2) . (+) -i . . -l (login shell) . -l . -m ~/.tcshrc . su(1) -m . (+) -n (parse) . . -q SIGQUIT ( (Signal handling)) . (Job control) . (u) -s . -t . `\' (escape) . -v verbose (echo) . -x echo . -V verbose ~/.tcshrc . -X -x -V -v . --help . (+) --version // . version . (+) -c - -i - -s -t "" . `$0' . "" `#' . argv . (Startup and shutdown) (login shell) /etc/csh.cshrc /etc/csh.login . home : ~/.tcshrc (+) ~/.tcshrc ~/.cshrc ~/.history ( histfile) ~/.login ~/.cshdirs ( dirsfile) (+). /etc/csh.login /etc/csh.cshrc ( ) ~/.login ~/.tcshrc ~/.cshrc ~/.history ( ) version . (+) (non-login) /etc/csh.cshrc ~/.tcshrc ~/.cshrc . : http://tcshrc.sourceforge.net stty(1) tset(1) ~/.login . csh(1) tcsh ~/.cshrc tcsh tcsh ~/.cshrc ~/.tcshrc ~/.cshrc source ( ). ~/.tcshrc ~/.tcshrc ~/.tcshrc ~/.cshrc. : > ( .) . ^D logout login ( autologout ) . logout `normal' `automatic' /etc/csh.logout ~/.logout . DTR version . csh(1) (FILES) . (Editing) (+) (The command-line editor (+)) . (+) (Completion and listing (+)) (+) (Spelling correction (+)) . (+) (Editor commands (+)) . (+) (The command-line editor (+)) emacs(1) vi(1) . edit . bindkey ( (+) (Editor commands (+)) ). emacs(1) ( version ) bindkey vi(1) . ( TERMCAP ) : down down-history up up-history left backward-char right forward-char . settc . ANSI/VT100 . emacs(1) vi(1) bindkey . bindkey . emacs(1) vi(1) vimode . "" . - wordchars Lexical structure . (+) . ls /usr/lost tab complete-word. /usr/lost /usr/lost+found/ . ( `/' `/' . addsuffix .) ( /usr/lost+found ) . ( /usr/lost ) `/' . . . . em[tab] `em' `emacs' `emacs' `em' . path . echo $ar[tab] `$ar' `$argv' `ar' . . `; ' `| ' `|& ' `&& ' `||' . `$' . . "" . ^D delete-char-or-list-or-eof . ls-F : > ls /usr/l[^D] lbin/ lib/ local/ lost+found/ > ls /usr/l autolist ( ) : > set autolist > nm /usr/lib/libt[tab] libtermcap.a@ libtermlib.a@ > nm /usr/lib/libterm autolist `ambiguous' . `~' ( (Filename substitution)) `=' ( (+) (Directory stack substitution (+))) . > ls ~k[^D] kahn kas kellogg > ls ~ke[tab] > ls ~kellogg/ > set local = /usr/local > ls $lo[tab] > ls $local/[^D] bin/ etc/ lib/ man/ src/ > ls $local/ expand-variables . delete-char-or-list-or-eof ignoreeof . M-^D list-choices list-choices ( / delete-char-or-list-or-eof ) bindkey ^D . complete-word-fwd complete-word-back ( ) . fignore . : > ls Makefile condiments.h~ main.o side.c README main.c meal side.o condiments.h main.c~ > set fignore = (.o \~) > emacs ma[^D] main.c main.c~ main.o > emacs ma[tab] > emacs main.c `main.c~' `main.o' ( ) fignore . `\' `~' home (Filename substitution) . fignore . complete `enhance' ) ) (`. ' `-' `_') . comp.lang.c comp.lang.perl comp.std.c++ comp.lang.c++ comp.std.c mail -f c.l.c[tab] : mail -f comp.lang.c mail -f c.l.c[^D] `comp.lang.c' `comp.lang.c++' . mail -f c..c++[^D] `comp.lang.c++' `comp.std.c++' . rm a--file[^D] A_silly_file a-hyphenated-file another_silly_file (hyphens) (underscores) . . complete `Enhance' . . rm a--file[^D] rm A--file `A_silly_file' rm a__file[^D] `A_silly_file' `another_silly_file' . : recexact : > ls fodder foo food foonly > set recexact > rm fo[tab] `fo' `fod' `foo' `o' > rm foo[tab] > rm foo `foo' `food' `foonly' . autoexpand expand-history autocorrect ( (+)) correct return . matchbeep nobeep . nostat / stat(2) . listmax listmaxrows () . recognize_only_executables . complete . (glob-patterns) ( (Filename substitution) ) list-glob expand-glob . (+) . spell-word ( M-s M-S ) spell-line ( M-$ ) . correct `cmd' `all' (return) autocorrect . : > set correct = cmd > lz /usr/bin CORRECT>ls /usr/bin (y|n|e|a)? `y' `e' `a' ^C . ( complete ). . . . (+) bindkey (key bindings) bindkey -l . . emacs(1) vi(1) . . ^character M-character escape-character ( ^[character) . . : backward-char (^B, left) . vimode . backward-delete-word (M-^H, M-^?) (cut) - . vimode . backward-word (M-b, M-B) . vimode . beginning-of-line (^A, home) . vimode . capitalize-word (M-c, M-C) (capitalize) . vimode . complete-word (tab) (+) . complete-word-back ( ) complete-word-fwd . complete-word-fwd ( ) . . . complete-word-raw (^X-tab) complete-word . copy-prev-word (M-^_) . : insert-last-word. vimode . dabbrev-expand (M-/) ( ) . dabbrev-expand history-search-backward . delete-char ( ) . : delete-char-or-list-or-eof. vimode . delete-char-or-eof ( ) delete-char end-of-file . : delete-char-or-list-or-eof. vimode . delete-char-or-list () delete-char list-choices . : delete-char-or-list-or-eof. delete-char-or-list-or-eof (^D) delete-char list-choices end-of-file . delete-char-or-eof delete-char-or-list list-or-eof . delete-word (M-d, M-D) (Cut) - . vimode . down-history (down, ^N) up-history . downcase-word (M-l, M-L) . vimode . end-of-file () (EOF) ignoreeof . : delete-char-or-list-or-eof. end-of-line (^E, end) . vimode . expand-history (M-space) . History substitution. magic-space, toggle-literal-history, autoexpand. expand-glob (^X-*) glob . Filename substitution. expand-line ( ) expand-history, . expand-variables (^X-$) . Variable substitution. forward-char (^F, right) . vimode . forward-word (M-f, M-F) . vimode . history-search-backward (M-p, M-P) . glob ( Filename substitution) `*', `?', `[]', `{}'. up-history down-history . Emacs. history-search-forward i-search-back. history-search-forward (M-n, M-N) history-search-backward . i-search-back ( ) history-search-backward bck: . i-search-back (i-search-back ) : ^W . delete ( backward-delete-char) . ^G . . escape . self-insert-command . (carriage return) . i-search-fwd history-search-backward. vimode . i-search-fwd () i-search-back . vimode . insert-last-word (M-_) (`!$') . copy-prev-word. list-choices (M-^D) (+) . delete-char-or-list-or-eof list-choices-raw. list-choices-raw (^X-^D) list-choices . list-glob (^X-g, ^X-G) glob ( ) ( ls-F) . list-or-eof () list-choices end-of-file . delete-char-or-list-or-eof. magic-space () expand-history . magic-space (space bar) . normalize-command (^X-?) PATH . () . (aliases) . `dbx' `sh -x'. normalize-path (^X-n, ^X-N) `expand' symlinks . overwrite-mode ( ) () (overwrite) . run-fg-editor (M-^Z) (stopped job) editors . editors EDITOR (`ed' ) VISUAL (`vi' ) . `fg %job' . . ^Z . run-help (M-h, M-H) " " . (pager) run-help . helpcommand . command.help command.1 command.6 command.8 command HPATH . . self-insert-command ( ) () . (overwrite) . inputmode `insert' `overwrite' . : overwrite-mode. sequence-lead-in ( meta ^X) . : sequence-lead-in . sequence-lead-in undefined-key . spell-line (M-$) spell-word `- ' `! ' `^' `%' `\ ' `*' `?' . (+) . spell-word (M-s, M-S) (+) . . toggle-literal-history (M-r, M-R) (expand) (unexpand). expand-history autoexpand . undefined-key ( ) . up-history (up, ^P) . histlit (literal) . . upcase-word (M-u, M-U) . vimode . vi-beginning-of-next-word ( ) Vi . vimode . vi-eword ( ) Vi . vimode . vi-search-back (?) ? ( history-search-backward glob ) . . return . escape . vi. vi-search-fwd (/) vi-search-back . which-command (M-?) which ( ) . yank-pop (M-y) yank yank-pop killring . killring yank . yank-pop killring . (Lexical structure) . `& ' `| ' `; ' `< ' `> ' `( ' `) ' `&& ' `|| ' `<< ' `>>' . `#' (comment) . `#' . (`\') ( tab) (`' ') (`"') (`` ') . `\' . (Substitutions) (History substitution) ( ) () ( `$' ``' (Variable substitution) (Command substitution)) `\' . ( (Alias substitution) : alias . .) (History substitution) . (Variable substitution) (Command substitution) . () ( ) ( ) . (metacharacters) . ( ) . ( ) : . (escape sequences) C `$' . (+) (+) . . ! . backslash_quote `\ ' `'' `"' (+). csh(1) . (+) `$''' echo echo_style . : \a (Bell). \b (Backspace). \cc `^c' stty(1) . c . \e (Escape). \f (Form feed). \n (Newline). \r (Carriage return). \t (Horizontal tab). \v (Vertical tab). \\ . \' . \" . \nnn nnn. \xnn nn (- ). \x{nnnnnnnn} nnnnnnnn (- ). \unnnn nnnn (- ). \Unnnnnnnn nnnnnnnn ( ). `\x ' `\u' `\U' . . . . . "" . history . histdup . . `!' prompt . `>&!' `> & !' . () . histlit . history savehist histfile (logout) (login) . (History substitutions) . `!' . . `!' `\' `!' (blank) (tab) (newline) `=' `(' . `^' History substitution abbreviation. (`!' `^') histchars . . " (event specification)" ( History event specification) " (word designator)" ( History word designators) / " (word modifier)" ( History word modifiers) . ( `!' ): !Event !n . !-n n . !# . csh(1) ( ) . tcsh . (+) !! `!-1'. !s s . !?s? s . `?' . : 9 8:30 nroff -man wumpus.man 10 8:31 cp wumpus.man wumpus.man.old 11 8:36 vi wumpus.man 12 8:37 diff wumpus.man.old wumpus.man . . !11 !-2 . !! . `!!' `!' `:' History word designators History word modifiers . !n `n' . !?old? `old' . !cp `cp' ( ) !!|more `diff' () . (`{' `}') . !vdoc `vdoc' !{v}doc `vi wumpus.mandoc' . . (+) csh(1) !3d `d' tcsh `3d' . . !3d csh(1) : !{3}d (History word designators) `:' . ( ) ( ) . `:' `!' ( - History substitution abbreviation ): :Word !Word :0 (). :n n-. :^ !^ `:1'. :$ !$ . :% !% ?s? . :x-y . :-y !-y `:0-y'. :* !* `:^-$ ' . :x* `:x-$'. :x- `:x* ' (`$'). :- `:0- ' . . `diff' ( ) History event specification diff wumpus.man.old wumpus.man diff !!:1.old !!:1 ( `:1' ) diff !-2:2 !-2:1 `cp' ( ). `diff' diff !-2:1-2 diff !-2:* `cp' ( ) cp wumpus.man !#:1.old `#' . !n:- hurkle.man `nroff' ( ) nroff -man hurkle.man . `:' `^ ' `$ ' `% ' `- ' `*' . `diff' ( ) diff !!^.old !!^ diff !!$.old !!$ . `!!' `!' `-' . . . `diff' ( ) diff !^.old !^ diff !* (History word modifiers) "" ( `:' ) `:' : :Word :h (head). :t (tail). :r `.xxx ' (root name). :e . :u . :l . :s/l/r/ r l. l r (regular expression) ed(1) . `/' `\' (quote) l r . `&' r l `\' `&' . l (`) ' l s . . :& . :g . :a (+) . `:a' `:g' . `:s', . :p . :q . :Q `:q' NUL . : > set args=('arg 1' '' 'arg 3') > tcsh -f -c 'echo ${#argv}' $args:gQ 3 :x `:q', . ( `:g' ). . `diff' ( ) (History event specification), diff wumpus.man.old wumpus.man diff wumpus.man.old !#^:r `:r' `.old' (`!#^') . echo hello out there echo !*:u `hello ' echo !*:au `HELLO ' echo !*:agu . mail -s "I forgot my password" rot !:s/rot/root `root' ( (History word modifiers) (+) (Spelling correction (+)) ). (+) csh(1) . : % mv wumpus.man /usr/share/man/man1/wumpus.1 % man !$:t:r man wumpus csh(1) : wumpus.1:r `:' : > mv a.out /usr/games/wumpus > setenv PATH !$:h:$PATH Bad ! modifier: $. > setenv PATH !{-2$:h}:$PATH setenv PATH /usr/games:/bin:/usr/bin:. csh(1) tcsh tcsh `:' `$' . (History substitution abbreviation) `^ ' `!:s^' . (History word modifiers) mail -s "I forgot my password" rot ^rot^root . `!' . (History editor commands) . up-history down-history history-search-backward history-search-forward i-search-back i-search-fwd vi-search-back vi-search-fwd copy-prev-word insert-last-word . toggle-literal-history . expand-history expand-line . (Alias substitution) alias unalias . ( Commands) . . (History substitution) . . `ls' ls -l ls /usr ls -l /usr . `lookup' grep !^ /etc/passwd lookup bill grep bill /etc/passwd (metasyntax) . alias print 'pr \!* | lpr' "" (`print') pr(1) . . ( ) . . (+) . . set unset . "" . printenv setenv unsetenv . (+) : set -r (unset) . set -r . . . argv . (toggles) . verbose (echo) . -v . . . `@' . ( ) . . (alias) `$' . `\' `$' `"' `'' . ``' ( ) `$' ( ) . `$' . / . . () ( ) . `"' `:q' . `" ' ( ) . `:q' . expand-variables ^X-$ (bind) . : $name ${name} name . name . . (underscore) . name (environment) ( ). $name[selector] ${name[selector]} name . selector `$' `-' . `1' . `1' . `$#name' . selector `*' . . $0 . . $number ${number} `$argv[number]'. $* `$argv ' `$argv[*]' . . `:' (History word modifiers) `:p ' . . (+) `:' (History word modifiers) . `:' : $?name ${?name} `1' name `0' . $?0 `1' `0' . `0' . $#name ${#name} name . $# `$#argv' . (+) $%name ${%name} name . (+) $%number ${%number} `$argv[number]' . (+) $? `$status' . (+) $$ (PID ) () . $! (PID ) . (+) $_ . (+) $< . . (+) csh(1) `$<' () `$<:q' tcsh . tcsh (interrupt) csh(1) . $?< . ( .) (+) . . . - . ``' . . . (`"') . . . 6.12 (carriage return) . csubstnonl . `* ' `? ' `[ ' `{' `~' "globbing" . ("glob-pattern") . `.' `/ ' `/' ( globdot globstar (+)). `*' . `?' . `[...]' . `[...] ' `-' . (+) (glob-patterns) : `[^...]' / . `^' : > echo * bang crash crunch ouch > echo ^cr* bang ouch `? ' `*' `[]' `{}' `~' ( ) . `a{b,c,d}e' `abe ace ade' . : /usr/source/s1/{oldls,ls}.c /usr/source/s1/oldls.c /usr/source/s1/ls.c . : ../{memo,*box} ../memo ../box ../mbox ( `memo' `*box' .) . . `{', `}' `{}' . `~' . `~ ' home . `-' ~ken /usr/ken ~ken/chmach /usr/ken/chmach . `~' `/' . setenv MANPATH /usr/share/man:/usr/local/share/man:~/lib/man . (glob- pattern) `* ' `? ' `[' `~ ' `^ ' . ( rm *.a *.c *.o `.a ' `.c' `.o' ) nonomatch ( ) . globstar `**' `***' `/' . ls **.c c. . . ls /usr/include/**/time.h `time.h' /usr/include ls /usr/include/**time.h /usr/include `time.h' ls /usr/include/**time**.h h. `time' . (recursion) `**' . `***' (+) . noglob expand-glob ^X-* . (+) pushd popd dirs . dirs savedirs dirsfile . dirstack . `=' . `=-' . > dirs -v 0 /usr/bin 1 /usr/spool/uucp 2 /usr/accts/sys > echo =1 /usr/spool/uucp > echo =0/calendar /usr/bin/calendar > echo =- /usr/accts/sys noglob nonomatch expand-glob . (+) . symlinks `expand' . normalize-path . normalize-command PATH . cd pushd `-' ( owd) . . . . . `|' (pipeline) . . `;' . `||' `&&' C . (`(' `)') . `&' . (Builtin) (Builtin) . (subshell) . . (cd; pwd); pwd home ( ) cd; pwd home . cd . execve(2) . path . -f execve(2) . . : 1. unhash . 2. -f argument . 3. path `/' . 4. `/' . . . ( ) . shell . `#!' version . : #!interpreter arg ... interpreter arg . / (Input/output) : < name name ( ) . << word word . word word . `\ ' `" ' `' ' ``' word `\' `$ ' `\' ``' . . . > name >! name >& name >&! name name . (truncate) . noclobber ( /dev/null) . . `!' . `notempty' noclobber `>' `ask' noclobber . `&' ( ) . name `<' . >> name >>& name >>! name >>&! name `>' name ( ). noclobber `!' . - (pipeline) . . (inline) `<<' . . (detached) /dev/null . (block) ( Jobs ). (diagnostic) . `|' `|&' . ( command > output-file ) >& error-file . output-file error-file /dev/tty . (Features) . (Control flow) ( ) ( ) . . foreach switch while if ... then ... else if . (seekable) (seek) . ( goto .) (Expressions) if while exit . . @ . C . : ( ) ~ ! * / % + - << >> <= >= < > == != =~ !~ & ^ | && || `==' `!=' `=~' `!~' . `=~' `!~' `==' `!=' glob ( ) . switch . `0' . . (`&' `|' `<' `>' `(' `)') . (`{' `}') . . `1' 0 `0' . status . / . -op file -op : -op / -r . -w . -x . -X path `-X ls' `-X ls-F' `-X /bin/ls' . (+) -e . -o . -z . -s . (+) -f . -d . -l (Symbolic link). (+) * -b (Block special file). (+) -c (Character special file). (+) -p (fifo). (+) * -S (Socket special file). (+) * -u Set-user-ID . (+) -g Set-group-ID . (+) -k (Sticky bit) . (+) -t file ( ) . (+) -R ( Convex). (+) -L . (+) * file . file `*' `0' . : -xy file -x file && -y file (+) `-fx' ( `1' ) . -L (symbolic link) . -lLo (true) . -Lr - -Lw -Lx . -L . file ( -X -t) . -L . `0' `1'. (+) -op : -op -A (epoch). -A: `A ' (timestamp) `Fri May 14 16:36:10 1993'. -M . -M: -M - (timestamp). -C inode. -C: -C - (timestamp). -D (Device number). -I inode. -F -file device:inode. -L (symbolic link) . -N (hard links). -P () . -P: -P - . -Pmode -P file & mode `-P22 file' `22' file `20' `0' . -Pmode: -Pmode . -U (userid). -U: . -G (groupid). -G: . -Z . . `L' . `0' `0' : `-1' `F' `:' . POSIX ( version ) access(2). -w POSIX -POSIX . filetest (+). (Jobs) (pipeline) job () . jobs . (asynchronously) `&' : [1] 1234 ( ) (PID) . ( ^Z) STOP . Suspended () (prompt) . listjobs jobs `long' `jobs -l'. . bg "" fg "" . ( run-fg-editor .) ^Z . wait . ^] read(2) STOP . . ^Y csh(1) ^Y . (+) . : stty tostop tty . . `%' . : %1 %1 fg %1 . %1 & bg %1 : %ex ex(1) `ex' . %?string string . . `+' `-' . `%+ ' `%' ( history) `%%' `%-' . `new' stty(1) . "new" tty (interrupt) . tty stty(1) setty . (Status reporting) . (prompt) . . notify . notify . notify notify . : There are suspended jobs. jobs . . (+) " " . (Builtin commands), (Special shell variables), (+) (Special aliases (+)) . sched . (+) (Special aliases (+)) beepcmd, cwdcmd, jobcmd, periodic, precmd, postcmd : tperiod . autologout . mail . printexitvalue . rmstar rm * . time (CPU) time . watch who log . (NLS) (+) - (8-bit clean) ( version ) . NLS NLS ( version ). ( ) - (7-bit ASCII) LANG LC_CTYPE . NLS setlocale(3) / ( `en_CA.UTF-8' `UTF-8' ). LANG LC_CTYPE . NLS ISO 8859-1 LANG LC_CTYPE ( ) . NLS . NLS \200-\377 M-char self-insert-command . escape-char ( ) . NOREBIND . NLS NLS ISO 8859-1 . M-char \240-\377 . bindkey . ( ) \nnn . tty 8 8 ASCII standout . 7/8 tty 7/8 . NLS ( meta ) tty stty(1) ~/.login 8 . (+) . (Builtin commands) . TCF (aix-ibm370, aix-ps2) getspath setspath getxvers setxvers migrate . jobs . BS2000 bs2cmd BS2000/OSD . Domain/OS inlib rootnode (rootnode) ver (systype) . Mach setpath setpath(1) Mach . Masscomp/RTU Harris CX/UX universe (universe) . Harris CX/UX ucb att universe . Convex/OS warp (universe) . VENDOR OSTYPE MACHTYPE ( ) . set path = (~/bin.$MACHTYPE /usr/ucb /bin /usr/bin .) ~/.login . version . newgrp afsuser echo_style ( (FILES) ). (Signal handling) ~/.logout (interrupts) . (quit signals) -q . (terminate signal) . . onintr (hangups) hup nohup . (hangup) ( logout ). . hup nohup . (+) ("tty") : `edit' `quote' (literal) `execute' . tty . (padding) tty . tty setty . CBREAK ( ) (typed-ahead) . echotc settc telltc . SIGWINCH SIGWINDOW LINES COLUMNS . TERMCAP `li#' `co#' . (REFERENCE) (Builtin commands) (+) (Special aliases) (Special shell variables) . (Builtin commands) %job fg. %job & bg. : . @ @ name = expr @ name[index] = expr @ name++|-- @ name[index]++|-- . expr name . expr index- name name index- . expr `* ' `+' C . expr `< ' `> ' `&' `|' expr (`' `') . expr Expressions . name index (`++') (`--') . `@' name . name `=' `=' expr . expr (space) . alias [name [wordlist]] (alias) . name name . name wordlist wordlist name . wordlist . name `alias' `unalias' . unalias . alloc . . . VAX . bg [%job ...] ( ) . job ` ' `% ' `+' `-' Jobs . bindkey [-l|-d|-e|-v|-u] (+) bindkey [-a] [-b] [-k] [-r] [--] key (+) bindkey [-a] [-b] [-k] [-c|-s] [--] key command (+) . key . command key . bindkey: Option bindkey description -a (alternative key map) . vimode . -b key ^character ( ^A) C-character ( C-A) M-character ( M-A) F-string ( F-string) X-character ( X-A) . -c command . -d -e -v . -e emacs(1) . vimode . -k key `down ' `up ' `left' `right' . -l . -r key . : `bindkey -r' key self-insert-command key . -s key command . command . -u ( ) () . -v vi(1) . vimode . -- key `-' . key . sequence-lead-in . key (literal) ( quoted-insert ^V ) - (caret- character) ^A. Delete ^? (- ) . key command ( echo(1) System V) : \a (Bell). \b Backspace. \e Escape. \f Form feed. \n (Newline). \r Carriage return. \t (Horizontal tab). \v (Vertical tab). \nnn ASCII nnn. `\' `\' `^'. bs2cmd bs2000-command (+) bs2000-command BS2000 . /EXECUTE /CALL-PROCEDURE . ( BS2000) break end foreach while . . (Multi-level breaks) . breaksw switch endsw . builtins (+) . bye (+) logout. version . case label: switch . cd [-p] [-l] [-n|-v] [--] [name] name name . home cdtohome name . name `-' ( Other substitutions (+) ). (+) name ( `/ ' `./' `../' ) cdpath name . name `/' `.' -p . -p - dirs. -l - -n -v cd dirs -p (+). -- `-' name (+). implicitcd cdtohome . chdir cd. complete [command [word/pattern/list[:select]/[[suffix]/] ...]] (+) (completions) . command command . command word ... . command (glob-pattern) ( (Filename substitution) ). `-' command . word : word c . pattern (glob-pattern) . pattern . C `c ' pattern . n . pattern (glob-pattern) . N `n ' . p . pattern shell . list : list a (Aliases). b ( ). c ( ). C . d . D . e . f . F . g . j (Jobs). l (Limits). n . s . S . t ("") . T ("") . v . u . x `n ' list-choices select . X (Completions). $var var. (...) . `...` . select glob . list select fignore . list `$var ' `(...)' ``...`' select `x' select list-choices . suffix . . ( ) . command list ``...`' COMMAND_LINE ( ) ( ) . COMMAND_LINE ( svn(1) ). . . > complete cd 'p/1/d/' `cd' (`p/1') . `p' : > co[^D] complete compress > complete -co* 'p/0/(compress)/' > co[^D] > compress ( `p/0') `co' ( `co*' ) `compress' ( ) . `-' . > complete find 'n/-user/u/' `n'. `find' `-user' . > complete cc 'c/-I/d/' `c' . `cc' `-I' . `-I' `c' . list . > complete alias 'p/1/a/' > complete man 'p/*/c/' > complete set 'p/1/s/' > complete true 'p/1/x:Truth has no options./' `alias' (alias) `man' `set' . true `x' Truth has no options. . `man' `'p/*'' `'c/*'' `'n/*'' . > complete ftp 'p/1/$hostnames/' > set hostnames = (rtfm.mit.edu tesla.ee.cornell.edu) > ftp [^D] rtfm.mit.edu tesla.ee.cornell.edu > ftp [^C] > set hostnames = (rtfm.mit.edu tesla.ee.cornell.edu uunet.uu.net) > ftp [^D] rtfm.mit.edu tesla.ee.cornell.edu uunet.uu.net : > complete kill 'p/*/`ps | awk \{print\ \$1\}`/' > kill -9 [^D] 23113 23377 23380 23406 23429 23529 23530 PID complete () `$' `{print $1}' . : > complete dbx 'p/2/(core)/' 'p/*/c/' `dbx' `core' . . . . select . > complete cc 'p/*/f:*.[cao]/' `cc' `.c ' `.a' `.o' . select (glob- pattern) (Filename substitution) . : > complete rm 'p/*/f:^*.{c,h,cc,C,tex,1,man,l,y}/' `rm' . complete-word-raw list-choices-raw . list `C ' `D ' `F' `T' `c ' `d ' `f' `t' select : . Elm `=' . : > complete elm c@=@F:$HOME/Mail/@ elm -f = : elm -f ~/Mail/ select `/' `@' `~' `$HOME' . suffix ( `/' ) . > complete finger 'c/*@/$hostnames/' 'p/1/u/@' `finger' `@' `@' `hostnames' . . : > complete find \ 'n/-name/f/' 'n/-newer/f/' 'n/-{,n}cpio/f/' \ 'n/-exec/c/' 'n/-ok/c/' 'n/-user/u/' \ 'n/-group/g/' 'n/-fstype/(nfs 4.2)/' \ 'n/-type/(b c d f l p s)/' \ 'c/-/(name newer cpio ncpio exec ok user \ group fstype type atime ctime depth inum \ ls mtime nogroup nouser perm print prune \ size xdev)/' \ 'p/*/d/' `-name ' `-newer ' `-cpio' `-ncpio' ( ) `-exec' `-ok' `-user' `-group' `-fstype' `-type' . ( `c' ) . ! ( `~') ( `$') . uncomplete . continue while foreach . . default: switch . case . dirs [-l] [-n|-v] dirs -S|-L [filename] (+) dirs -c (+) (directory stack) . . -l - `~' `~name' home name . (+) -n - (wrap) . (+) -v - . (+) -n -v -v . -p . -S filename cd pushd . -L filename source -S savedirs . filename dirsfile dirsfile ~/.cshdirs . dirs -L savedirs dirs -S . ~/.tcshrc ~/.cshdirs (source) dirsfile ~/.tcshrc ~/.login. . echo [-n] word ... word . echo_style ( ) (escape sequences) BSD / System V echo(1) (+) echo(1). echotc [-sv] arg ... (+) ( termcap(5)) arg . echotc home (home) echotc cm 3 10 echotc ts 0; echo "This is a test."; echotc fs This is a test. . arg `baud ' `cols ' `lines ' `meta' `tabs' ("yes" "no" ). : > set history=`echotc lines` > @ history-- Termcap (wildcard) . (double quotes) : > set tosl="`echotc ts 0`" > set frsl="`echotc fs`" > echo -n "$tosl";date; echo -n "$frsl" -s - . -v - (verbose) . else end endif endsw foreach if switch while . eval arg ... () . (parsing) . eval tset(1) . exec command ... command . exit [expr] expr ( Expressions ) expr 0 . fg [%job ...] ( ) (foreground) . job ` ' `% ' `+' `-' Jobs . run-fg-editor . filetest -op file ... (+) op ( File inquiry operators ) file . foreach name (wordlist) ... end name wordlist end . ( foreach end .) continue break . foreach? ( prompt2) . . getspath (+) . ( TCF) getxvers (+) . ( TCF) glob word ... echo -n (null) . . goto word word `label' . label: ( ) . hashstat ( exec) . path `/' exec . vfork(2) (buckets) . history [-hTr] [n] history -S|-L|-M [filename] (+) history -c (+) . n n . -h - . -T . history -L source -h . -r - . -S filename . savehist . savehist `merge' ( ) . (+) X Window System . savehist `merge' `lock' . -L filename ( -S savehist ) . -M -L filename . filename histfile histfile ~/.history . history -L source -h . history -L savehist history -S . ~/.tcshrc ~/.history (source) histfile ~/.tcshrc ~/.login. histlit () . . hup [command] (+) command command (hangup) . hup . . (Signal handling) nohup . if (expr) command expr ( (Expressions) ) command . command if . command (alias) (pipeline) . / expr command . if (expr) then ... else if (expr2) then ... else ... endif expr else expr2 else . else if endif . else . ( else endif if else .) inlib shared-library ... (+) shared-library . . ( Domain/OS) jobs [-l] jobs -Z [title] (+) . -l - (PID) . TCF (site) . -Z setproctitle(3) title . title . kill -l kill [-s signal] %job|pid ... . signal ( TERM ()) . job `', `%', `+', `-' Jobs . ( /usr/include/signal.h `SIG' ) . job kill . TERM () HUP ( ) CONT () . limit [-h] [resource [maximum-use]] maximum-use resource . maximum-use resource . resource . -h (hard limits) . . (super-user) . resource ( ): resource concurrency (threads) . coredumpsize core dump . cputime (cpu-seconds) . datasize + (data+stack) sbrk(2) (program text). descriptors openfiles . filesize . heapsize brk(2) . kqueues kqueue . maxlocks . maxmessage mqueue POSIX . maxnice nice [19...-20] [0...39] . maxproc (user id). maxrtprio (realtime) . maxrttime (timeout) RT . maxsignal (pending) . maxthread ( ) . memorylocked mlock(2) . memoryuse . posixlocks (advisory) POSIX . pseudoterminals (pseudo-terminals) . sbsize . stacksize (stack) . swapsize swap . threads thread . vmemoryuse ( ). maximum-use ( ) . cputime `k' `kilobytes' ( ) `m' `megabytes' ( ) `g' `gigabytes' ( ) . cputime `seconds' `m' `h' `mm:ss' . maximum-use `unlimited' resource ( unlimit ). resource . log (+) watch watch . watchlog. login (login shell) /bin/login . (log off) sh(1) . logout . ignoreeof . ls-F [-switch ...] [file ...] (+) ls -F . ls-F : / . * (Executable). # (Block device). % (Character device). | ( ). = ( ). @ ( ). + ( AIX) ( HP/UX). : ( HP/UX). listlinks ( ): @ . > . & (). listlinks ls-F . listflags `x ' `a ' `A ' ( `xA') ls-F : ls -xF ls -Fa ls -FA ls -FxA ls -C ls-F ls -CF listflags `x' ls -xF . ls-F ls(1) alias ls ls-F . ls-F . color CLICOLOR_FORCE LSCOLORS LS_COLORS . migrate [-site] pid|%jobid ... (+) migrate -site (+) (migrate) . ( TCF) migrate -site $$ . tty . ( TCF) newgrp [-] [group] (+) exec newgrp newgrp(1). version . nice [+number] [command] number number . command command . number cpu . (super-user) nice -number ... . command (sub- shell) if . nohup [command] command command (hangup) . hangup nohup . . Signal handling hup . notify [%job ...] ( %job ) . job `', `%', `+', `-' Jobs . notify . onintr [-|label] (interrupts) . . `- ' . label goto label . (detached) ( FILES ) onintr . popd [-p] [-l] [-n|-v] [+n] (pop) . `+n', n . popd dirs. pushdsilent -p pushdsilent . -l, -n -v popd dirs . (+) printenv [name] (+) name, name . pushd [-p] [-l] [-n|-v] [name|+n] . pushdtohome pushd pushd ~ cd . (+) name (push) name . name `-' ( Filename substitution ). (+) dunique pushd name . (+) `+n ' n (top) . dextract pushd +n n . (+) pushd dirs . pushdsilent -p pushdsilent . -l - -n -v pushd dirs . (+) rehash (hash table) path . autorehash path . autorehash . (tilde expansion) . repeat count command command command if count . I/O count 0 . rootnode //nodename (+) (rootnode) //nodename `/' `//nodename' . ( Domain/OS) sched (+) sched [+]hh:mm command (+) sched -n (+) . sched . command . > sched 11:00 echo It\'s eleven o\'clock. It's eleven o'clock. . AM/PM : > sched 5pm set prompt='[%h] It\'s after 5; go home: >' : > sched +2:15 /usr/lib/uucp/uucico -r1 -sother AM/PM . n : > sched 1 Wed Apr 4 15:42 /usr/lib/uucp/uucico -r1 -sother 2 Wed Apr 4 17:00 set prompt=[%h] It's after 5; go home: > > sched -2 > sched 1 Wed Apr 4 15:42 /usr/lib/uucp/uucico -r1 -sother (prompt) . . . . at(1) . . sched . . set set name ... set name=word ... set [-r] [-f|-l] name=(wordlist) ... (+) set name[index]=word ... set -r (+) set -r name ... (+) set -r name=word ... (+) . . name . name word . name wordlist . . -r . -f -l . -f -l . index name word . . name . name . / set . . `=' name word . unset . setenv [name [value]] . name name value value (null) . setpath path (+) setpath(1). ( Mach) setspath LOCAL|site|cpu ... (+) . ( TCF) settc cap value (+) cap ( termcap(5) ) value . (sanity check) . Concept settc xn no (wrapping) . setty [-d|-q|-x] [-a] [[+|-]mode] (+) tty ( (+)) . -d - -q -x setty tty `edit ' `quote' `execute' -d - -q -x - `execute' . setty (`+mode') (`-mode') . . -a - tty . +mode -mode mode mode mode . setty +echok echoe `echok' `echoe' . setxvers [string] (+) string string . ( TCF) shift [variable] argv[1] argv . argv . variable variable . source [-h] name [args ...] name . . args argv . (+) source . source source . -h - history -L stop %job|pid ... . job `', `%', `+' `-' Jobs . job stop . suspend ^Z . su(1) . switch (string) case str1: ... breaksw ... default: ... breaksw endsw case string . (metacharacters) `* ' `?' `[...]' case . default default . case default . breaksw endsw . C case default (fall through). default endsw . telltc (+) ( termcap(5)). termname [termtype] (+) termtype ( TERM termtype ) termcap(5) terminfo(5) . 0 1 . time [command] command ( alias ) time . . command . umask [value] value () . 002 022 . value . unalias pattern (aliases) pattern . unalias * alias . unalias . uncomplete pattern (+) pattern . uncomplete * . uncomplete . unhash (hash table) . universe universe (+) universe universe . ( Masscomp/RTU) unlimit [-hf] [resource] resource resource resource . -h - (hard limits) . (super-user) . unlimit descriptors . -f . unset pattern pattern (read-only) . unset * . unset . unsetenv pattern pattern . unsetenv * . unsetenv . ver [systype [command]] (+) SYSTYPE . systype, SYSTYPE systype . systype command, command systype . systype `bsd4.3' `sys5.3' . ( Domain/OS) wait . . warp universe (+) (universe) universe . ( Convex/OS) watchlog (+) log. version . where command (+) command (aliases) path. which command (+) path . which(1) tcsh . which-command . while (expr) ... end while end expr ( Expressions ) . while end . break continue . foreach . (+) . . : beepcmd . cwdcmd . X xterm(1) twm(1) : > alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd ^G"' xterm(1) `:' . : > alias cwdcmd 'echo -n "^[]2;${HOST}:$cwd^G^[]1;${HOST}^G"' . cd pushd popd cwdcmd . . jobcmd . postcmd . > alias jobcmd 'echo -n "^[]2\;\!#:q^G"' vi foo.c xterm . helpcommand run-help . . : > alias helpcommand '\!:1 --help' GNU . ( `-h' Unix) . periodic tperiod . . : > set tperiod = 30 > alias periodic checknews checknews(1) . periodic tperiod 0 periodic precmd . precmd (prompt) . : > alias precmd date date(1) . precmd . postcmd . > alias postcmd 'echo -n "^[]2\;\!#:q^G"' vi foo.c xterm . shell . ( `/bin/csh' `/usr/local/bin/tcsh'). . addsuffix argv autologout csubstnonl command echo_style edit gid group home loginsh oid path prompt prompt2 prompt3 shell shlvl tcsh term tty uid user version . cwd dirstack owd status logout (logout) . group home path shlvl term user : ( - ) . cwd PWD path PATH . : addsuffix (+) `/' (space) . . afsuser (+) autologout kerberos . ampm (+) AM/PM . anyerror (+) status . status . argv . argv `$1' `$argv[1]' . . autocorrect (+) spell-word . autoexpand (+) expand-history . `onlyhistory' . autolist (+) . `ambiguous' . autologout (+) . . auto-logout logout `automatic' . . . ( ) `60' ( ) ( DISPLAY ) tty pseudo-tty (pty) ( version ). autologout (unset) `0' . afsuser logout . autorehash (+) () path . `complete' `correct' `always' . backslash_quote (+) (`\') `\ ' `'' `"' (quote) . csh(1) (syntax errors) . catalog . tcsh tcsh tcsh.${catalog} . cdpath cd . cdtohome (+) cd name home . . color ls-F --color=auto ls(1) ( --color=always CLICOLOR_FORCE ). `ls-F' `ls' . `(ls-F ls)' . CLICOLOR_FORCE . colorcat NLS NLS . command (+) -c . compat_expr (+) csh(1) . complete (+) `igncase' . `enhance' (`. ' `-' `_') . `Enhance' (underscore) . continue (+) . continue_args (+) continue : echo `pwd` $argv > ~/._pause; % correct (+) `cmd' . `complete' . `all' . csubstnonl (+) (newlines) (carriage returns) . . cwd . dirstack owd . dextract (+) pushd +n n . dirsfile (+) dirs -S dirs -L . ~/.cshdirs . ~/.tcshrc ~/.cshdirs (source) dirsfile ~/.tcshrc ~/.login. dirstack (+) (directory stack). `$dirstack[1]' `$dirstack[2]' . `$dirstack[1]' `=0' . dirstack ( ) . cwd owd . dspmbyte (+) `dspm' version . `euc' EUC-kanji () . `sjis' Shift-JIS () . `big5' Big5 () . `utf8' Utf8 () . (multi-byte) : > set dspmbyte = NNN...[250 characters]...NNN N ( ) 0x00, 0x01, 0x02, ..., 0xfd, 0xfe, 0xff . : Number Multi-byte purpose 0 . 1 . 2 . 3 . `001322' : Character ASCII Multi-byte character use 0 0x00 . 0 0x01 . 1 0x02 . 3 0x03 . 2 0x04 . 2 0x05 . GNU coreutils ls(1) -N (--literal) . dspmbyte `ls' . ls-F -l . KANJI DSPMBYTE . dunique (+) pushd name . echo (echo) . (non-builtin) . . -x . echo_style (+) echo. : echo bsd -n csh(1). sysv (backslashed escape sequences) echo . both -n tcsh. none . . BSD System V echo(1) . edit (+) . . editors (+) run-fg-editor . EDITOR (`ed' ) VISUAL (`vi' ) . ellipsis (+) `%c ' `%.' `%C' ( prompt ) `/' (`...') . euid (+) (effective user ID) . euser (+) passwd . fignore (+) (completion) . filec . edit csh(1) . csh(1) . gid (+) (real group ID) . globdot (+) (wild- card glob) `.' `.' `..'. globstar (+) `**' `***' `/' . ls **.c .c . . ls /usr/include/**/time.h `time.h' /usr/include ls /usr/include/**time.h /usr/include `time.h' . (recursion) `**' . `***' . group (+) . highlight ( i-search-back i-search-fwd) (mark) (reverse video) (highlight) . (overhead) . . histchars History substitution . `!' . `^' . histdup (+) . `all' . `prev' . `erase' . `prev' `all' . histfile (+) history -S history -L . ~/.history . histfile . ~/.tcshrc ~/.history histfile ~/.login ~/.tcshrc . histlit (+) savehist () . toggle-literal-history . history . (+) `%h\t%T\t%R\n' . prompt `%R' . `100' . home . `~' . ignoreeof `0' end-of-file ( ^D ) Use "exit" to leave tcsh. . . EOF . `n' n - 1 end-of-file n (+). `1' ^D . implicitcd (+) . verbose . . alias . . inputmode (+) `insert' `overwrite' . killdup (+) (kill ring) . `all' . `prev' . `erase' . killring (+) . `30' . `2' . (kill) backward-delete-word kill-line copy-region-as-kill (killring) . yank (yank) yank-pop ( (+) ) . listflags (+) `x ' `a' `A ' ( `xA') ls-F : ls -xF ls -Fa ls -FA ls -FxA `a' ( `.' ). `A' `.' `..' . `x' () () . listflags ls(1) . listjobs (+) (job) . `long' . listlinks (+) ls-F (symbolic link) . listmax (+) list-choices . listmaxrows (+) list-choices . loginsh (+) () . . : shlvl. logout (+) `normal ' `automatic' hangup `hangup' ( Signal handling). autologout . mail . (prompt) You have new mail. ( mail You have new mail in name.) (modification time) (access time) . (login shell) . . mail You have n mails. You have n mails in name. . Andrew Mail System. mail ( ) . You have new mail. You have mail. . matchbeep (+) `never' . `nomatch' . `ambiguous' . `notunique' . `ambiguous' . nobeep (+) . visiblebell. noclobber `>>' / (Input/output) . `ask' . `notempty' `>' . noding DING! prompt . noglob (Filename substitution) (+) (Directory stack substitution (+)) . . nokanji (+) Kanji ( version ) meta . nonomatch (Filename substitution) (+) (Directory stack substitution (+)) . ( ) . echo [ . nostat (+) ( glob Filename substitution ) stat(2) . stat(2) /afs. notify (jobs) . (prompt) . oid (+) (organization ID) . ( Domain/OS) owd (+) `-' cd pushd . cwd dirstack . padhour ('0') . `07:45:42' `7:45:42'. parseoctal 0 (octal) . . path . (null) . path . path PATH PATH (/usr/local/bin /usr/bsd /bin /usr/bin .) `.' path version . -c -t ~/.tcshrc path path () . path rehash . printexitvalue (+) Exit status . prompt . prompt (+) : (Prompt) %/ . %~ `~' `~user' Filename substitution. `~user' `~user' . %c[[0]n], %.[[0]n] n n . n `0' () `/trailing' . ellipsis (...) `...trailing' . `~' `%~' `~' . %C `%c ' `~'. %h, %!, ! . %M (hostname). %m `.'. %S (%s) () (standout). %B (%b) () (bold). %U (%u) () (underline). %t, %@ ./. (AM/PM). %T `%t ' ( ampm ). %p `' ./. (AM/PM) . %P `%p ' ( ampm ). \c c bindkey . ^c c bindkey . %% `%'. %n . %N . %j job ( ). %d `Day'. %D `dd'. %w `Mon'. %W `mm'. %y `yy'. %Y `yyyy'. %l (tty) . %L (prompt) . %$ `$' . %# `>' ( promptchars) (superuser) `#' ( promptchars) . %{string%} string (escape sequence) . . prompt . %? . %R prompt2 (parser). prompt3 . history . `%B ' `%S ' `%U' `%{string%}' (eight-bit-clean) version . (bold) (standout) (underline) (superuser) . > set prompt = "%m [%h] %B[%@]%b [%/] you rang? " tut [37] [2:54pm] [/usr/accts/sys] you rang? _ `%t ' `%@ ' `%T ' `%p' `%P' noding ( `:00' ) DING! . `%# ' . prompt2 (+) while foreach `\' . prompt `%R' . `%R? ' . prompt3 (+) . prompt `%R' . `CORRECT>%R (y|n|e|a)? ' . promptchars (+) ( ) `%#' prompt (superuser) . pushdtohome (+) pushd cd pushd ~ . pushdsilent (+) pushd popd . recexact (+) . recognize_only_executables (+) . . rmstar (+) rm * . rprompt (+) (prompt) ( ) . prompt . . edit rprompt . savedirs (+) dirs -S . . savehist history -S . . ( history history history .) `merge' ( ) . `merge' `lock' () . (+) sched (+) sched `%h\t%T\t%R\n' . prompt `%R' . shell . (forked) . ( (Builtin and non-builtin command execution) .) ( ) . shlvl (+) . (login shells) . loginsh. status (pipeline) status . ( csh(1) .) POSIX ( ) . POSIX anyerror (unset) . anyerror status . 0200 . `1' `0' . symlinks (+) (`symlink') : `chase' (symbolic link) . (home) . `ignore' . cd cd .. . (builtin) . `expand' . . . (quoting) . . `ignore' normalize-path ( ^X-n) . . : > cd /tmp > mkdir from from/src to > ln -s from/src to/dst symlinks : > cd /tmp/to/dst; echo $cwd /tmp/to/dst > cd ..; echo $cwd /tmp/from symlinks `chase' : > cd /tmp/to/dst; echo $cwd /tmp/from/src > cd ..; echo $cwd /tmp/from symlinks `ignore' : > cd /tmp/to/dst; echo $cwd /tmp/to/dst > cd ..; echo $cwd /tmp/to symlinks `expand' : > cd /tmp/to/dst; echo $cwd /tmp/to/dst > cd ..; echo $cwd /tmp/to > cd /tmp/to/dst; echo $cwd /tmp/to/dst > cd ".."; echo $cwd /tmp/from > /bin/echo .. /tmp/to > /bin/echo ".." .. `expand': 1. cd `ignore' . 2. () . 3. . tcsh (+) `R.VV.PP ' `R' `VV' `PP' (patchlevel) . term . ~/.login . time time CPU . (format string) time . (u) time : Format Time information %U . %S . %E ( ) . %P (%U + %S) / %E . %W (swap) . %X () . %D / () . %K (%X + %D) . %M . %F ( ). %R . %I . %O . %r . %s . %k . %w (). %c . BSD . `%Uu %Ss %E %P %X+%Dk %I+%Oio %Fpf+%Ww' `%Uu %Ss %E %P' . DYNIX/ptx Sequent `%X ' `%D ' `%K ' `%r' `%s' : Format Description Sequent DYNIX/ptx time information %Y (system calls) . %Z (zero- filled on demand). %i (resident set size) . %d . %l (read) . %m (write) . %p (raw disk devices). %q (raw disk devices). `%Uu %Ss %E %P %I+%Oio %Fpf+%Ww'. CPU . tperiod (+) periodic. tty (+) tty tty . uid (+) (real user ID). user (login name) . verbose ( ) . -v . version (+) . ( tcsh) (vendor) ( VENDOR OSTYPE MACHTYPE) . . version : 8b - . 7b - . wide ( UTF-8) . nls NLS NLS. lf (login shells) /etc/csh.login /etc/csh.cshrc ( ) ~/.login ~/.tcshrc ~/.history . dl `.' path . nd `.' path . vi vi(1) emacs(1) . dtr DTR . bye bye logout log watchlog . al autologout . kan (locale) (Kanji) nokanji . sm malloc(3) . hb #!interpreter arg ... . ng newgrp . rh REMOTEHOST . afs kerberos . afsuser AFSUSER (override) . . vimode (+) emacs(1) : wordchars . vi(1) : wordchars (whitespace) vi ( command delete insert replace) . bindkey -e bindkey -v . vimode bindkey . visiblebell (+) . : nobeep. watch (+) / . `any' . watch (any any) . set watch = (george ttyd1 any console $user any) `george' `ttyd1 ' ( ) . watch . set watch = (1 any any) / . log watch . ( log) watch . who watch . who (+) watch : Format Who %n / . %a `logged on ' `logged off ' `replaced olduser on'. %l (tty) / . %M `local' / . %m `.'. IP X . `%M' `%m' /etc/utmp . %n has %a %l from %m. %n has %a %l. . wordchars (+) - forward-word backward-word . vimode : vimode `*?_-.[]~=' vimode `_' . (ENVIRONMENT) AFSUSER (+) afsuser. CLICOLOR_FORCE ls-F . ls(1) ls-F --color=auto --color=always . color CLICOLOR_FORCE ls-F . COMMAND_LINE ``...`' complete list tcsh . complete Builtin commands . COLUMNS . Terminal management (+) . DISPLAY (X Window System) ( X(1)). autologout . EDITOR . editors run-fg-editor . VISUAL. GROUP (+) group. HOME home. HOST (+) gethostname(2) . HOSTTYPE (+) . . HPATH (+) `:' run-help . LANG . Native Language System support (+). LC_CTYPE ctype . (Native Language System support) (+) . LINES . (Terminal management) (+) . LSCOLORS ls-F ( LS_COLORS) . BSD ls(1) . LS_COLORS LSCOLORS . LSCOLORS LS_COLORS setenv setenv . LSCOLORS unsetenv LS_COLORS setenv LS_COLORS ( ) . fb f b . . . LS_COLORS : . [ ] 1 di . [ ] 2 ln . [ ] 3 so . [ ] 4 pi (FIFO). [ ( )] 5 ex . [ ] 6 bd . [ ] 7 cd . [ ] 8 su Setuid. [ ] 9 sg Setgid. [ ] 10 tw Sticky . [ ] 11 ow Sticky. [ ] : a . b . c . d ( ). e . f . g (Cyan). h . A (Bold) . B . C . D . E . F (Magenta). G . H . x . ANSI . . LS_COLORS BSD ls(1) . LS_COLORS ls-F ( LSCOLORS) . GNU coreutils ls(1) dircolors(1) . tcsh LS_COLORS LSCOLORS . LSCOLORS LS_COLORS setenv setenv . LS_COLORS unsetenv LSCOLORS setenv LSCOLORS ( ) . termcap(5) `:' "xx=value" "*ext=value". "xx=value" "xx" ISO 6429 : Var . [ ] no 0 ( ). fi 0 . di 01;34 . [ ] ln 01;36 (Symbolic link). [ ] pi 33 (FIFO). [ ( )] so 01;35 . [ ] do 01;35 (Door). [ ] bd 01;33 (Block device). [ ] cd 01;33 (Character device). [ ] ex 01;32 . [ ] mi () ( ). fi . or () (). ln . lc ^[[ (Left code). rc m (Right code). ec () . lc+no+rc . su 37;41 Setuid. [ ] sg 30;43 Setgid. [ ] tw 30;42 (sticky) . [ ] ow 34;42 . [ ] st 37;44 . [ ] mh () (hard link). . "*ext=value" . ISO 6429 C "*.c=34" . `.c' (34) . C (C-style-escaped) ^ stty . C `^[' Escape `_' `?' Delete . `^[' `^[ ' `^ ' `:' `=' . : lc color-code rc filename ec `ec' lc no rc . . (`lc ') (`rc') (`ec') ISO 6429 . ISO 6429 ( `lc ' `rc' `ec') ISO 6429 `;' . `01;32' . ISO 6429 : Color Description 0 . 1 (Bold) / . 4 (Underline). 5 . 30 . 31 . 32 . 33 ( ). 34 . 35 (magenta). 36 (cyan). 37 ( ). 40 . 41 . 42 . 43 ( ). 44 . 45 (magenta). 46 (cyan). 47 ( ). ISO 6429 . . `no' `fi' 0 . `ln' `target' . MACHTYPE (+) ( ) . NOREBIND (+) self-insert-command . Native Language System support (+). OSTYPE (+) . PATH `:' . path . PWD (+) cwd . REMOTEHOST (+) . version . SHLVL (+) shlvl . SYSTYPE (+) . ( Domain/OS) TERM term . TERMCAP . Terminal management (+). USER user . VENDOR (+) . VISUAL . run-fg-editor editors . EDITOR . (FILES) /etc/csh.cshrc . ConvexOS Stellix Intel /etc/cshrc . NeXT /etc/cshrc.std . A/UX AMIX Cray IRIX csh(1) tcsh . Solaris 2.x tcsh /etc/.cshrc . (+) /etc/csh.login /etc/csh.cshrc . ConvexOS Stellix Intel /etc/login . NeXT /etc/login.std . Solaris 2.x /etc/.login . A/UX AMIX Cray IRIX /etc/cshrc . ~/.tcshrc (+) /etc/csh.cshrc . ~/.cshrc ~/.tcshrc /etc/csh.cshrc . `~/.tcshrc' "~/.tcshrc ~/.tcshrc ~/.cshrc" . ~/.history ~/.tcshrc savehist histfile . ~/.login ~/.tcshrc ~/.history . ~/.login ~/.tcshrc ~/.history version . ~/.cshdirs (+) ~/.login savedirs dirsfile . /etc/csh.logout . ConvexOS Stellix Intel /etc/logout . NeXT /etc/logout.std . A/UX AMIX Cray IRIX csh(1) tcsh . Solaris 2.x tcsh /etc/.logout . (+) ~/.logout (login shells) /etc/csh.logout . /bin/sh `#' . /tmp/sh* `<<'. /etc/passwd `~name'. Startup and shutdown version . (+) (NEW FEATURES) tcsh csh(1) tcsh . emacs(1) vi(1) . (+) (+). . (+) complete uncomplete. (+) . (+) (run-help), (run-fg-editor), (which-command). . . history `#' , down-history, expand-history, history-search-backward, history-search-forward, i-search-back, i-search-fwd, toggle-literal-history, vi-search-back, vi-search-fwd, up-history histlit. . cd, pushd, popd, dirs (+) (Directory stack substitution (+)), dirstack, owd, symlinks normalize-command normalize-path . glob. (Filename substitution). (File inquiry operators) filetest . (+) (Automatic, periodic and timed events (+)) . ( (+) (Native Language System support (+))), ( (+) (OS variant support (+)) echo_style) ( (FILES)). . Terminal management (+). builtins, hup, ls-F, newgrp, printenv, which, where. . gid, loginsh, oid, shlvl, tcsh, tty, uid, version HOST, REMOTEHOST, VENDOR, OSTYPE, MACHTYPE. ( prompt), ( prompt2 prompt3). . Variable substitution. T TCSH (THE T IN TCSH) DEC PDP-6 . PDP-10 . DEC KI10 DECsystem-10 . TENEX Bolt, Beranek & Newman ( ) (demand-paged) . (pager) DEC PDP-10 . . DEC PDP-10 KL10 TENEX BBN . TOPS-20 ( ). TOPS-10 (<>) DEC -- PDP-11 ! TENEX TOPS-20 ULTCMD . DEC (<<>> ) COMND% JSYS ( <> [ ]) . tcsh TENEX TOPS-20 csh . (LIMITATIONS) ARG_MAX . / . . alias . (SEE ALSO) csh(1), dircolors(1), emacs(1), ls(1), newgrp(1), setpath(1), sh(1), stty(1), su(1), tset(1), vi(1), x(1), access(2), execve(2), fork(2), killpg(2), pipe(2), setrlimit(2), sigvec(2), stat(2), umask(2), vfork(2), wait(2), malloc(3), setlocale(3), tty(4), a.out(5), termcap(5), environ(7), termio(7), Introduction to the C Shell (VERSION) tcsh 6.24.16 (Astron) 2025-07-09 . (AUTHORS) William Joy. csh(1). J.E. Kulp, IIASA . . Ken Greer, HP Labs 1981. . Mike Ellis, Fairchild 1983. / . Paul Placeway, CIS 1983-1993. glob . Karl Kleinpaste, CCI 1983-4. / . Rayan Zachariassen, 1984. ls-F which . Chris Kingsley, Caltech. . Chris Grevstad, TRW, 1987. 4.3BSD csh(1) tcsh. Christos S. Zoulas, Cornell U. EE Dept., 1987-94. HPUX SVR2 SVR3 getwd.c SysV SHORT_STRINGS sh.glob.c. James J Dempsey, BBN Paul Placeway, OSU, 1988. A/UX. Daniel Long, NNSC, 1988. wordchars. Patrick Wolfe, Kuck and Associates, Inc., 1988. vi. David C Lawrence, Rensselaer Polytechnic Institute, 1989. autolist . Alec Wolman, DEC, 1989. . Matt Landau, BBN, 1989. ~/.tcshrc. Ray Moody, Purdue . . Mordechai ????, Intel . printprompt(). Kazuhiro Honda, Keio . prompt3. Per Hedeland, Ellemtel -. . Hans J. Albertsson, Sun . ampm, settc, telltc. Michael Bloom. . Michael Fine, Digital Equipment Corp. . Eric Schnoebelen, Convex . Convex csh(1) . Ron Flax, Apple . () A/UX 2.0. Dan Oscarsson, LTH . NLS NLS NLS . Johan Widen, SICS . shlvl, Mach correct-line, -. Matt Day, Sanyo Icon . termio POSIX SysV. Jaap Vermeulen, Sequent -. Vi expand-line Symmetry. Martin Boyer, Institut de recherche d'Hydro-Quebec . autolist . Scott Krotz, Motorola . Minix. David Dawes, . SVR4. Kimmo Suominen, 1991-. . `$''' ( ). Jose Sousa, Interactive Systems Corp. . vi vi. Marc Horowitz, MIT, 1991. ANSI exec imake where. Luke Mewburn, 1991-. prompt. ellipsis rprompt. vimode. . Bruce Sterling Woodcock, sterling@netcom.com, 1991-1995. ETA Pyramid Makefile lint ignoreeof=n . Jeff Fink, 1992. complete-word-fwd complete-word-back. Harry C. Pulley, 1992. Coherent. Andy Phillips, Mullard Space Science Lab U.K., 1992. VMS-POSIX. Beto Appleton, IBM Corp., 1992. csh(1), POSIX POSIX SIGHUP. Scott Bolte, Cray Computer Corp., 1992. CSOS. Kaveh R. Ghazi, Rutgers University, 1992. Tek m88k Titan Masscomp. autoconf. Mark Linderman, Cornell University, 1992. OS/2. Mika Liljeberg, liljeber@kruuna.Helsinki.FI, 1992. Linux. Tim P. Starrin, NASA Langley Research Center Operations, 1993. . Dave Schweisguth, Yale University, 1993-4. man tcsh.man2html. Larry Schwimmer, Stanford University, 1993. AFS HESIOD. Edward Hutchins, Silicon Graphics Inc., 1996. cd . Martin Kraemer, 1997. Siemens Nixdorf EBCDIC. Amol Deshpande, Microsoft, 1997. WIN32 ( Windows/95 Windows/NT) Windows. Taga Nayuta, 1998. ls . (THANKS TO) Bryan Dunlap, Clayton Elwell, Karl Kleinpaste, Bob Manson, Steve Romig, Diana Smetters, Bob Sutterfield, Mark Verber, Elizabeth Zwicky Ohio State Richard M. Alderson III T in tcsh (BUGS) . ( ) . / . a ; b ; c . `b', `c'. alias. `()' : ( a ; b ; c ) tty . . alias alias . . `|', `&' `;' . foreach end here document . `:' . ( `dumb'). HPATH NOREBIND . glob `?', `*', `[]', `{}' `~' . if . ls-F . . goto . https://bugs.astron.com . tcsh https://mailman.astron.com/mailman/listinfo/tcsh . Astron 6.24.16 July 9, 2025 Astron 6.24.16