Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
c
csh(1) csh(1)
the output. Useful in programs that use the shell to perform file name expansion on a list of
words.
goto word
The specified word is file name and command expanded to yield a string of the form label.
The shell rewinds its input as much as possible and searches for a line of the form label:
possibly preceded by blanks or tabs. Execution continues after the specified line.
hashstat
Print a statistics line indicating how effective the internal hash table has been at locating
commands (and avoiding execs). An exec is attempted for each component of the path
where the hash function indicates a possible hit, and in each component that does not begin
with a /.
history [-h][-r][n]
Displays the history event list. If n is given, only the n most recent events are printed. The
-r option reverses the order of printout to be most recent first rather than oldest first. The
-h option prints the history list without leading numbers for producing files suitable for the
source command.
if (expression) command
If expression evaluates true, the single command with arguments is executed. Variable sub-
stitution on command happens early, at the same time it does for the rest of the
if com-
mand. command must be a simple command; not a pipeline, a command list, a parenthesized
command list, or an aliased command. Input/output redirection occurs even if expression is
false, meaning that command is not executed (this is a bug).
if (expression1) then
...
else if (
expression2) then
...
else
...
endif
If expression1 is true, all commands down to the first else are executed; otherwise if
expression2 is true, all commands from the first
else down to the second else are exe-
cuted, etc. Any number of
else-if pairs are possible, but only one endif is needed. The
else part is likewise optional. (The words else and endif must appear at the beginning
of input lines. The if must appear alone on its input line or after an else.)
jobs [-l]
Lists active jobs. The -l option lists process IDs in addition to the usual information.
kill % job
kill - sig % job ...
kill pid
kill - sig pid...
kill -l
Sends either the TERM (terminate) signal or the specified signal to the specified jobs or
processes. Signals are either given by number or by names (as given in
/usr/include/signal.h
, stripped of the SIG prefix (see signal(2)). The signal names
are listed by
kill -l. There is no default, so kill used alone does not send a signal to
the current job. If the signal being sent is
TERM (terminate) or HUP (hangup), the job or pro-
cess is sent a CONT (continue) signal as well. See also kill(1).
limit[-h][resource ][maximum_use ]
Limits the usage by the current process and each process it creates not to (individually)
exceed maximum_use on the specified resource. If maximum_use is not specified, then the
current limit is displayed; if resource is not specified, then all limitations are given.
If the -h flag is specified, the hard limits are used instead of the current limits. The hard
limits impose a ceiling on the values of the current limits. Only the superuser can raise the
hard limits, but a user can lower or raise the current limits within the legal range.
Controllable resources currently include:
addresspace Maximum address space in bytes for a process
Section 1−−132 − 4 − HP-UX Release 11i: December 2000
___
___