HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

s
sh-posix(1) sh-posix(1)
typeset + displays the parameter names alone. Specify one or more of the option letters to res-
trict the list. Some options are incompatible with others.
ulimit [-HSacdfnst][limit]
Set or display a resource limit. The limit for a specified resource is set when limit is specified. The
value of limit can be a number in the unit specified with each resource, or the keyword
unlimited.
The
-H and -S flags specify whether the hard limit or the soft limit is set for the given resource. A
hard limit cannot be increased once it is set. A soft limit can be increased up to the hard limit. If nei-
ther -H nor -S is specified, the limit applies to both. The current resource limit is printed when limit
is omitted. In this case, the soft limit is printed unless
-H is specified. When more than one resource
is specified, the limit name and unit are printed before the value.
If no option is given,
-f is assumed.
-a List all of the current resource limits.
-c The number of 512-byte blocks in the size of core dumps.
-d The number of kilobytes in the size of the data area.
-f The number of 512-byte blocks in files written by child processes (files of any size can be
read).
-n The number of file descriptors.
-s The number of kilobytes in the size of the stack area.
-t The number of seconds to be used by each process.
umask [-S][mask]
Set the user file-creation mask mask. mask can be either an octal number or a symbolic value as
described in umask(1). A symbolic value shows permissions that are unmasked. An octal value shows
permissions that are masked off.
Without mask, print the current value of the mask. With -S, print the value in symbolic format.
Without -S, print the value as an octal number. The output from either form can be used as the
mask of a subsequent invocation of umask.
unalias name ...
unalias -a
Remove each name from the alias list. With -a, remove all alias definitions from the current shell
execution environment.
% unset [-fv] name ...
Remove the named shell parameters from the parameter list. Their values and attributes are erased.
Read-only variables cannot be unset. With -f, names refer to function names. With -v
, names refer
to variable names. Unsetting
_, ERRNO, LINENO, MAILCHECK, OPTARG, OPTIND,
RANDOM,
SECONDS, and TMOUT removes their special meaning, even if they are subsequently assigned to.
wait [job]
Wait for the specified job to terminate or stop, and report its status. This status becomes the return
code for the wait command. Without job, wait for all currently active child processes to terminate or
stop. The termination status returned is that of the last process. See the "Jobs" subsection for a
description of the format of job.
whence [-pv] name ...
For each name, indicate how it would be interpreted if used as a command name. With -v, produce a
more verbose report. With -p do a path search for name, disregarding any use as an alias, a function,
or a reserved word.
Comments
A word beginning with # causes that word and all the following characters up to a newline to be ignored.
Aliasing
The first word of each command is replaced by the text of an alias,ifanalias for this word has been
defined. An alias name consists of any number of characters excluding metacharacters, quoting charac-
ters, file expansion characters, parameter and command substitution characters, and =. The replacement
string can contain any valid shell script, including the metacharacters listed above. The first word of each
command in the replaced text, other than any that are in the process of being replaced, will be tested for
Section 1902 Hewlett-Packard Company 11 HP-UX 11i Version 1: September 2005