HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)
p
ps(1) ps(1)
The lists used as arguments to the
-C, -g, -G, -p, -R, -t
, -u, -Z, and -U options can be specified in one
of two forms:
• A list of identifiers separated from one another by a comma.
• A list of identifiers enclosed in quotation marks (
") and separated from one another by a comma
and/or one or more spaces.
Output Format Options
Use the following options to control which columns of data are included in the output listing. The options
are cumulative.
(none) The default columns are:
pid, tty
, time, and comm, in that order.
-f Show columns user, pid,
ppid, cpu, stime, tty, time, and args, in that
order.
-l Show columns flags, state
, uid, pid, ppid, cpu, intpri, nice, addr, sz,
wchan, tty, time, and
comm, in that order.
-fl Show columns flags, state, user, pid, ppid, cpu, intpri
, nice, addr,
sz, wchan, stime, tty, time, and args, in that order.
-c (XPG4 Only.) Remove columns cpu and nice; replace column intpri with
columns cls and pri.
-j (XPG4 Only.) Add columns pgid and sid after column ppid (or pid,if
ppid is
not being displayed).
-z Add column pset before column prmgrp / prmid.Ifprmgrp and prmid are not
present, add column
pset before column pid. (Note that ps(1) displays the kernel
processor set id, where all kernel daemons run, as KERN).
The -z option is supported only if the kernel supports processor sets functionality.
-P Add column prmid (for -l)orprmgrp (for -f or -fl
) immediately before column
pid. See DEPENDENCIES.
-o format (XPG4 Only.) format is a comma- or space-separated list of the columns to display, in
the order they should be displayed. (Valid column names are listed below.) A column
name can optionally be followed by an equals sign (=) and a string to use as the head-
ing for that column. (Any commas or spaces after the equals sign will be taken as a
part of the column heading; if more columns are desired, they must be specified with
additional -o options.) The width of the column will be the greater of the width of the
data to be displayed and the width of the column heading. If an empty column head-
ing is specified for every heading, no heading line will be printed. This option over-
rides options -c, -f, -j, -l, -z, and
-P; if they are specified, they are ignored.
-H (XPG4 Only.) Shows the process hierarchy. Each process is displayed under its
parent, and the contents of the args or comm column for that process is indented
from that of its parent. Note that this option is expensive in both memory and speed.
-x Shows the command line in extended format.
The column names and their meanings are given below. Except where noted, the default heading for each
column is the uppercase form of the column name.
addr The memory address of the process, if resident; otherwise, the disk address.
args The command line given when the process was created. This column should be the
last one specified, if it is desired. Only a subset of the command line is saved by the
kernel; as much of the command line will be displayed as is available. The output in
this column may contain spaces. The default heading for this column is COMMAND if
-o is specified and CMD otherwise.
cls Process scheduling class, see rtsched(1).
comm The command name. The output in this column may contain spaces. The default
heading for this column is COMMAND if -o is specified and CMD otherwise.
cpu Processor utilization for scheduling. The default heading for this column is C.
HP-UX 11i Version 1: September 2005 − 2 − Hewlett-Packard Company Section 1−−793