HP-UX Reference (11i v2 04/09) - 1 User Commands A-M (vol 1)

k
ksh(1) ksh(1)
-t Tag the named parameters. Tags are user definable and have no special
meaning to the shell.
-u Convert all lowercase characters to uppercase characters. The lowercase
-l
option is turned off.
-x Mark any given name for automatic export to the environment of subsequently
executed commands.
Using
+ instead of - causes these options to be turned off. If no name argu-
ments are given but options are specified, a list of names (and optionally the
values) of the parameters that have these options set is printed. Using
+
instead of - retains the values to be printed. If neither names nor options are
given, the names and attributes of all parameters are printed.
ulimit [-HSacdfst][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 (
-H) is set or the soft limit (-S
) 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 neither
-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 List or set the number of 512-byte blocks in the size of core dumps.
-d List or set the number of kilobytes in the size of the data area.
-f List or set the number of 512-byte blocks in files written by child processes
(files of any size can be read).
-s List or set the number of kilobytes in the size of the stack area.
-t List or set the number of seconds to be used by each process.
umask [ mask ]
The user file-creation mask is set to mask (see umask(2)). mask can either be an octal
number or a symbolic value as described in chmod(1). If a symbolic value is given, the
new umask value is the complement of the result of applying mask to the complement of
the previous umask value. If mask is omitted, the current value of the mask is printed.
See also umask(1).
unalias name ...
The parameters given by the list of names are removed from the alias list.
unset [ -f ] name ...
The parameters given by the list of names are unassigned; that is, their values and attri-
butes are erased. Read-only variables cannot be unset. If the -f option is set, names
refer to function names. Unsetting ERRNO, LINENO, MAILCHECK, OPTARG, OPTIND,
RANDOM, SECONDS, TMOUT, and _ removes their special meaning even if they are sub-
sequently 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. If job is not given, wait waits for all currently
active child processes to terminate or stop. The termination status returned is that of the
last process. See Jobs for a description of the format of a job.
whence [ -pv ] name ...
For each name, indicate how it would be interpreted if used as a command name. The
-v option produces a more verbose report. The -p option does a path search for name
even if name is an alias, a function, or a reserved word.
Invoking ksh
If the shell is invoked by
exec (see exec(2)), and the first character of argument zero ($0)is-, the shell
is assumed to be a login shell and commands are read first from /etc/profile. The expression
${HOME:-.}/.profile is then evaluated and an attempt to open the resulting filename is made. If
the file is opened successfully, the file is read. Next, commands are read from the file named by
HP-UX 11i Version 2: September 2004 − 17 − Hewlett-Packard Company Section 1−−437