HP StorageWorks XPath OS 7.4.X Command Reference Guide (AA-RVHCC-TE, September 2005)
XPath OS 7.4.x command reference guide 209
Displays processes status.
Synopsis
ps [-acCehjKlmrSTuvwx] [-M core] [-N system] [-O fmt] [-o fmt] [-p pid]
[-t tty] [-U username] [-W swap]
ps [-L]
Availability
admin
Description
Use this command to display a header line followed by lines containing information about processes that
have controlling terminals. This information is sorted by controlling terminal and, among processes with
the same controlling terminal, process ID.
The information display is based on a set of selected keywords (see the -L, -O, and
-o operands). The default output format for each process includes the process ID, controlling terminal,
CPU time (including both user and system time), state, and associated command.
Operands
The operands are as follows:
ps
-a Displays information about other users’ processes, as well as your own.
-c Does not display the full command and arguments; displays only the
executable name. This can be somewhat confusing; for example, all sh
scripts are displayed as sh.
-C Changes the way the CPU percentage is calculated by using a raw CPU
calculation that ignores resident time (this normally has no effect).
-e Displays the environment. The environment for other users’ processes can
be displayed only by the superuser.
-h Repeats the information header as often as necessary to guarantee one
header per page of information.
-j Displays information associated with the keywords: user, pid, ppid,
pgid, sess, jobc, state, tt, time, and command.
-K Disables the fallback /proc-based method. Note that the /proc-based
method is used only if the ordinary kvm method is not possible.
-L Lists the set of available keywords.
-l Displays information associated with the following keywords: uid, pid,
ppid, cpu, pri, nice, vsz, rss, wchan, state, tt, time, and
command.
-M core Extracts values associated with the name list from the specified core
instead from the default /dev/kmem file. The -M option implies the -K
option.
-m Sorts by memory usage instead of by process ID.
-N system Extracts the name list from the specified system instead of from the
default/netbsd file.