HP-UX Reference (11i v2 07/12) - 1 User Commands N-Z (vol 2)
s
sh-posix(1) sh-posix(1)
& hash [utility]...
& hash -r
Affect the way the current shell environment remembers the locations of utilities. With utility, add
utility locations to a list of remembered locations. With no arguments, print the contents of the list.
With
-r, forget all previously remembered utility locations.
jobs [-lnp][job]...
List information about each given job, or all active jobs if job is not specified. With
-l, list process
IDs in addition to the normal information. With
-n, display only jobs that have stopped or exited
since last notified. With
-p
, list only the process group. See the Jobs subsection for a description of
the format of job.
kill [-s signal] process ...
kill -l
kill
[-signal] process ...
Send either signal 15 (SIGTERM, terminate) or the specified signal to the specified jobs or processes.
If the signal being sent is
TERM
(terminate) or HUP (hangup), the job or process is sent a CONT (con-
tinue) signal when stopped. See kill(1) for usage and description.
With
-l, list the signal names and numbers.
let arg ...
(( arg ...))
Evaluate each arg as a separate arithmetic expression. See the Arithmetic Evaluation subsection for
a description of arithmetic expression evaluation. The exit status is 0 if the value of the last expres-
sion is nonzero, and 1 otherwise.
% newgrp [-][group]
Replace the current shell with a new one having group as the user’s group. The default group is the
user’s login group. With -, also execute the user’s
.profile and $ENV files. See newgrp(1) for
usage and description. Equivalent to
exec newgrp arg ....
print [-nprRsu[n]] [arg]...
The shell output mechanism. With no options or with option - or --, print the arguments on stan-
dard output as described in echo(1). See also printf(1).
With
-n, do not add a newline character to the output.
With -p, write the arguments onto the pipe of the process spawned with |&
instead of standard out-
put.
With
-R or -r (raw mode), ignore the escape conventions of echo. With -R
, print all subsequent
arguments and options other than
-n.
With -s, write the arguments into the history file instead of to standard output.
With -u, specify a one-digit file descriptor unit number n on which the output will be placed. The
default is 1 (standard output).
pwd [-L-P]
Print the name of the current working directory (equivalent to print -r - $PWD). With -L (the
default), preserve the logical meaning of the current directory. With -P, preserve the physical mean-
ing of the current directory if it is a symbolic link. See also the cd special command, cd(1), ln(1), and
pwd(1).
read [-prsu[n]] [name?prompt][name]...
The shell input mechanism. Read one line (by default, from standard input) and break it up into
words using the characters in IFS as separators. The first word is assigned to the first name, the
second word to the second name, and so on; the remaining words are assigned to the last name. See
also read(1). The return code is 0, unless an end-of-file is encountered.
With -p, take the input line from the input pipe of a process spawned by the shell using |&. An end-
of-file with -p causes cleanup for this process so that another process can be spawned.
With -r (raw mode), a \ at the end of a line does not signify line continuation.
HP-UX 11i Version 2: December 2007 Update − 7 − Hewlett-Packard Company 271