ps.1 (2010 09)
p
ps(1) ps(1)
Z Terminated
T Stopped
X Growing
The default heading for this column is
S
.
stime Starting time of the process. If the elapsed time is greater than 24 hours, the start-
ing date is displayed instead.
sz The size in physical pages of the core image of the process, including text, data, and
stack space. Physical page size is defined by
_SC_PAGE_SIZE in the header file
<unistd.h> (see sysconf (2) and unistd (5)).
time The cumulative execution time for the process.
tty The controlling terminal for the process. The default heading for this column is
TT
if -o is specified and TTY
otherwise.
uid The user ID number of the effective process owner.
user The login name of the effective process owner.
vsz The size of the process in (virtual) memory in kilobytes (1024 byte units).
wchan The event for which the process is waiting or sleeping; if there is none, a hyphen (-)
is displayed.
Notes
ps prints the command name and arguments given at the time of the process was created. If the process
changes its arguments while running (by writing to its argv array), these changes are not displayed by
ps.
A process that has exited and has a parent, but has not yet been waited for by the parent, is marked
<defunct> (see zombie process in exit (2)).
The time printed in the
stime column, and used in computing the value for the etime column, is the
time when the process was forked, not the time when it was modified by
exec().
To make the
ps output safer to display and easier to read, all control characters in the
comm and args
columns are displayed as "visible" equivalents in the customary control character format,
ˆx.
The default length of the
COMMAND field is 128 (including the null terminator). This can be configured by
setting DEFAULT_CMD_LINE_WIDTH=
value in the /etc/default/ps file. The value of
DEFAULT_CMD_LINE_WIDTH
should be between 64 and 1020. However, when the comm column is
displayed, by default, the length of the
COMMAND field will be 14 characters. If the environment variable
PS_CMD_BASENAME is defined, then the length of the
COMMAND field will be between 64 and 255 charac-
ters.
Under UNIX Standard (see standards (5)) environment, the following behavioral changes occur:
• The
TIME column format changes from mmmm:ss to [dd-]hh:mm:ss.
• When the
comm, args, user, and prmgrp fields are included by default or the -f or -l flags are
used, the column headings of those fields change to CMD, CMD, USER, and PRMGRP, respectively.
•
-a, -d, and -g will select processes based on session rather than on process group.
• The uid or user column displayed by
-f or -l will display effective user rather than real user.
• The
-u option will select users based on effective UID rather than real UID.
• The
-C and -H options, while they are not part of the UNIX Standard, are enabled.
EXTERNAL INFLUENCES
For information about the UNIX standard environment, see standards (5).
Environment Variables
LC_TIME determines the format and contents of date and time strings. If it is not specified or is null, it
defaults to the value of LANG.
If
LANG is not specified or is null, it defaults to C (see lang(5)).
If any internationalization variable contains an invalid setting, all internationalization variables default
to
C (see environ (5)).
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010