| Name |
Description |
| argv |
Argument list. Contains
the list of command line arguments supplied to the current invocation of
the shell. This variable determines the value of the positional parameters
$1, $2, and so on. |
| cdpath |
Contains
a list of directories to be searched by the cd, chdir, and popd commands,
if the directory argument each accepts is not a subdirectory of the current
directory. |
| cwd |
The
full pathname of the current directory. See pwd. |
| echo |
Echo
commands (after substitutions) just before execution. See echo. |
| fignore |
A
list of filename suffixes to ignore when attempting filename completion.
Typically the single word ‘.o’. |
| filec |
Enable
filename completion, in which case the CTRL-d character EOT and the ESC
character have special significance when typed in at the end of a
terminal input line. |
| hardpaths |
If
set, pathnames in the directory stack are resolved to contain no symbolic-link
components. |
| histchars |
A
two-character string. The first character replaces ! as the history-substitution
character. The second replaces the carat (^) for quick substitutions. |
| history |
The
number of lines saved in the history list. A very large number may use
up all of the C shell’s memory. If not set, the C shell saves only the
most recent command. See history. |
| home |
The
user’s home directory. The filename expansion of**~ refers to the value
of this variable. |
| ignoreeof |
If
set, the shell ignores EOF from terminals. This protects against accidentally
killing a C shell by typing a CTRL-d. |
| mail |
A
list of files where the C shell checks for mail. If the first word of the
value is a number, it specifies a mail checking interval in seconds
(default 5 minutes). |
| nobeep |
Suppress
the bell during command completion when asking the C shell to extend an
ambiguous filename. |
| noclobber |
Restrict
output redirection so that existing files are not destroyed by accident.
> redirections can only be made to new files. >> redirections can only
be made to existing files. |
| noglob |
Inhibit
filename substitution. This is most useful in shell scripts once filenames
(if any) are obtained and no further expansion is desired. |
| nonomatch |
Returns
the filename substitution pattern, rather than an error, if the pattern
is not matched. Malformed patterns still result in errors. |
| notify |
If
set, the shell notifies you immediately as jobs are completed, rather than
waiting until just before issuing a prompt. |
| path |
The
list of directories in which to search for commands. path is initialized
from the environment variable PATH, which the C shell updates whenever
path changes. A null word specifies the current directory. The default
is typically (/usr/bin .). If path becomes unset only full
pathnames will execute. An interactive C shell will normally hash the contents
of the directories listed after reading .cshrc, and whenever path is reset.
If new commands are added, use the rehash command to update the table. |
| prompt |
The
string an interactive C shell prompts with. Noninteractive shells leave
the prompt variable unset. Aliases and other commands in the .cshrc
file that are only useful interactively, can be placed after the following
test: ‘if ($?prompt == 0) exit’, to reduce startup time for noninteractive
shells. A ! in the prompt string is replaced by the current event number.
The default prompt is "hostname %" for mere mortals, or "hostname #" for
the privileged user. |
| savehist |
The
number of lines from the history list that are saved in**~/.history when
the user logs out. Large values for savehist slow down the C shell during
startup. |
| shell |
The
file in which the C shell resides. This is used in forking shells to interpret
files that have execute bits set, but that are not executable by the system. |
| status |
The
status returned by the most recent command. If that command terminated
abnormally, 0200 is added to the status. Built-in commands that fail return
exit status 1; all other built-in commands set status to 0. |
| time |
Control
automatic timing of commands. Can be supplied with one or two values. The
first is the reporting threshold in CPU seconds. The second is a string
of tags and text indicating which resources to report on. See the
time command.
| Arguments |
Description |
| %E |
Elapsed
(wallclock) time for the command. |
| %F |
Page
faults. |
| %I |
Number
of block input operations. |
| %K |
Average
amount of unshared stack space used in Kilobytes. |
| %M |
Maximum
real memory used during execution of the process. |
| %O |
Number
of block output operations. |
| %P |
Total
CPU time - U (user) plus S (system) - as a percentage of E (elapsed) time. |
| %S |
Number
of seconds of CPU time consumed by the kernel on behalf of the user’s process. |
| %U |
Number
of seconds of CPU time devoted to the user’s process. |
| %W |
Number
of swaps. |
| %X |
Average
amount of shared memory used in Kilobytes. |
The default summary display
outputs from the %U, %S, %E, %P, %X, %D, %I, %O, %F, and %W tags, in that
order.
|
| verbose |
Display
each command after history substitution takes place. |