2596 lines
71 KiB
HTML
2596 lines
71 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PS</H1>
|
|
Section: User Commands (1)<BR>Updated: 2018-08-08<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
ps - report a snapshot of the current processes.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>ps</B> [,<I>options/</I>]
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<B>ps</B>
|
|
|
|
displays information about a selection of the active processes. If you want
|
|
a repetitive update of the selection and the displayed information, use
|
|
<I><A HREF="/cgi-bin/man/man2html?1+top">top</A></I>(1)
|
|
|
|
instead.
|
|
<P>
|
|
|
|
This version of
|
|
<B>ps</B>
|
|
|
|
accepts several kinds of options:
|
|
<DL COMPACT>
|
|
<DT id="1"><DD>
|
|
|
|
<DT id="2">1<DD>
|
|
UNIX options, which may be grouped and must be preceded by a dash.
|
|
<DT id="3">2<DD>
|
|
BSD options, which may be grouped and must not be used with a dash.
|
|
<DT id="4">3<DD>
|
|
GNU long options, which are preceded by two dashes.
|
|
|
|
</DL>
|
|
<P>
|
|
|
|
Options of different types may be freely mixed, but conflicts can appear.
|
|
There are some synonymous options, which are functionally identical, due to
|
|
the many standards and
|
|
<B>ps</B>
|
|
|
|
implementations that this
|
|
<B>ps</B>
|
|
|
|
is compatible with.
|
|
<P>
|
|
|
|
Note that "<B>ps -aux</B>" is distinct from "<B>ps aux</B>". The POSIX and
|
|
UNIX standards require that "<B>ps -aux</B>" print all processes owned by a
|
|
user named "x", as well as printing all processes that would be selected by
|
|
the
|
|
<B>-a</B>
|
|
|
|
option. If the user named "x" does not exist, this
|
|
<B>ps</B>
|
|
|
|
may interpret the command as "<B>ps aux</B>" instead and print a warning.
|
|
This behavior is intended to aid in transitioning old scripts and habits. It
|
|
is fragile, subject to change, and thus should not be relied upon.
|
|
<P>
|
|
|
|
By default,
|
|
<B>ps</B>
|
|
|
|
selects all processes with the same effective user ID (euid=EUID) as the
|
|
current user and associated with the same terminal as the invoker. It
|
|
displays the process ID (pid=PID), the terminal associated with the process
|
|
(tname=TTY), the cumulated CPU time in [DD-]hh:mm:ss format (time=TIME), and
|
|
the executable name (ucmd=CMD). Output is unsorted by default.
|
|
<P>
|
|
|
|
The use of BSD-style options will add process state (stat=STAT) to the
|
|
default display and show the command args (args=COMMAND) instead of the
|
|
executable name. You can override this with the
|
|
<B>PS_FORMAT</B>
|
|
|
|
environment variable. The use of BSD-style options will also change the
|
|
process selection to include processes on other terminals (TTYs) that are
|
|
owned by you; alternately, this may be described as setting the selection to
|
|
be the set of all processes filtered to exclude processes owned by other
|
|
users or not on a terminal. These effects are not considered when options
|
|
are described as being "identical" below, so
|
|
<B>-M</B>
|
|
|
|
will be considered identical to <B>Z</B> and so on.
|
|
<P>
|
|
|
|
Except as described below, process selection options are additive. The
|
|
default selection is discarded, and then the selected processes are added to
|
|
the set of processes to be displayed. A process will thus be shown if it
|
|
meets any of the given selection criteria.
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>EXAMPLES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="5">To see every process on the system using standard syntax:<DD>
|
|
<B>ps -e</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps -ef</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps -eF</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps -ely</B>
|
|
|
|
<DT id="6">To see every process on the system using BSD syntax:<DD>
|
|
<B>ps ax</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axu</B>
|
|
|
|
<DT id="7">To print a process tree:<DD>
|
|
<B>ps -ejH</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axjf</B>
|
|
|
|
<DT id="8">To get info about threads:<DD>
|
|
<B>ps -eLf</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axms</B>
|
|
|
|
<DT id="9">To get security info:<DD>
|
|
<B>ps -eo euser,ruser,suser,fuser,f,comm,label</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axZ</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps -eM</B>
|
|
|
|
<DT id="10">To see every process running as root (real & effective ID) in user format:<DD>
|
|
<B>ps -U root -u root u</B>
|
|
|
|
<DT id="11">To see every process with a user-defined format:<DD>
|
|
<B>ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps -Ao pid,tt,user,fname,tmout,f,wchan</B>
|
|
|
|
<DT id="12">Print only the process IDs of syslogd:<DD>
|
|
<B>ps -C syslogd -o pid=</B>
|
|
|
|
<DT id="13">Print only the name of PID 42:<DD>
|
|
<B>ps -q 42 -o comm=</B>
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SIMPLE PROCESS SELECTION</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="14"><B>a</B>
|
|
|
|
<DD>
|
|
Lift the BSD-style "only yourself" restriction, which is imposed upon the
|
|
set of all processes when some BSD-style (without "-") options are used or
|
|
when the
|
|
<B>ps</B>
|
|
|
|
personality setting is BSD-like. The set of processes selected in this
|
|
manner is in addition to the set of processes selected by other means. An
|
|
alternate description is that this option causes
|
|
<B>ps</B>
|
|
|
|
to list all processes with a terminal (tty), or to list all processes when
|
|
used together with the
|
|
<B>x</B>
|
|
|
|
option.
|
|
<DT id="15"><B>-A</B>
|
|
|
|
<DD>
|
|
Select all processes. Identical to
|
|
<B>-e</B>.
|
|
|
|
<DT id="16"><B>-a</B>
|
|
|
|
<DD>
|
|
Select all processes except both session leaders (see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+getsid">getsid</A></I>(2))
|
|
|
|
and processes not associated with a terminal.
|
|
<DT id="17"><B>-d</B>
|
|
|
|
<DD>
|
|
Select all processes except session leaders.
|
|
<DT id="18"><B>--deselect</B>
|
|
|
|
<DD>
|
|
Select all processes except those that fulfill the specified conditions
|
|
(negates the selection). Identical to
|
|
<B>-N</B>.
|
|
|
|
<DT id="19"><B>-e</B>
|
|
|
|
<DD>
|
|
Select all processes. Identical to
|
|
<B>-A</B>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DT id="20"><B>g</B>
|
|
|
|
<DD>
|
|
Really all, even session leaders. This flag is obsolete and may be
|
|
discontinued in a future release. It is normally implied by the
|
|
<B>a</B>
|
|
|
|
flag, and is only useful when operating in the sunos4 personality.
|
|
<DT id="21"><B>-N</B>
|
|
|
|
<DD>
|
|
Select all processes except those that fulfill the specified conditions
|
|
(negates the selection). Identical to
|
|
<B>--deselect</B>.
|
|
|
|
<DT id="22"><B>T</B>
|
|
|
|
<DD>
|
|
Select all processes associated with this terminal. Identical to the
|
|
<B>t</B>
|
|
|
|
option without any argument.
|
|
<DT id="23"><B>r</B>
|
|
|
|
<DD>
|
|
Restrict the selection to only running processes.
|
|
<DT id="24"><B>x</B>
|
|
|
|
<DD>
|
|
Lift the BSD-style "must have a tty" restriction, which is imposed upon the
|
|
set of all processes when some BSD-style (without "-") options are used or
|
|
when the
|
|
<B>ps</B>
|
|
|
|
personality setting is BSD-like. The set of processes selected in this
|
|
manner is in addition to the set of processes selected by other means. An
|
|
alternate description is that this option causes
|
|
<B>ps</B>
|
|
|
|
to list all processes owned by you (same EUID as
|
|
<B>ps</B>),
|
|
|
|
or to list all processes when used together with the
|
|
<B>a</B>
|
|
|
|
option.
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>PROCESS SELECTION BY LIST</H2>
|
|
|
|
These options accept a single argument in the form of a blank-separated or
|
|
comma-separated list. They can be used multiple times. For example:
|
|
<B>ps -p 1 2 -p 3,4</B>
|
|
|
|
<DL COMPACT>
|
|
<DT id="25">-<I>123</I>
|
|
|
|
<DD>
|
|
Identical to
|
|
<B>--pid </B><I>123</I><B></B>.
|
|
|
|
<DT id="26"><I>123</I>
|
|
|
|
<DD>
|
|
Identical to
|
|
<B>--pid </B><I>123</I><B></B>.
|
|
|
|
<DT id="27"><B>-C</B><I> cmdlist</I>
|
|
|
|
<DD>
|
|
Select by command name. This selects the processes whose executable name is
|
|
given in
|
|
<I>cmdlist</I>.
|
|
|
|
NOTE: The command name is not the same as the command line. Previous versions
|
|
of procps and the kernel truncated this command name to 15 characters. This
|
|
limitation is no longer present in both. If you depended on matching only
|
|
15 characters, you may no longer get a match.
|
|
<DT id="28"><B>-G</B><I> grplist</I>
|
|
|
|
<DD>
|
|
Select by real group ID (RGID) or name. This selects the processes whose
|
|
real group name or ID is in the
|
|
<I>grplist</I>
|
|
|
|
list. The real group ID identifies the group of the user who created the
|
|
process, see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+getgid">getgid</A></I>(2).
|
|
|
|
<DT id="29"><B>-g</B><I> grplist</I>
|
|
|
|
<DD>
|
|
Select by session OR by effective group name. Selection by session is
|
|
specified by many standards, but selection by effective group is the logical
|
|
behavior that several other operating systems use. This
|
|
<B>ps</B>
|
|
|
|
will select by session when the list is completely numeric (as sessions
|
|
are). Group ID numbers will work only when some group names are also
|
|
specified. See the
|
|
<B>-s</B>
|
|
|
|
and
|
|
<B>--group</B>
|
|
|
|
options.
|
|
<DT id="30"><B>--Group</B><I> grplist</I>
|
|
|
|
<DD>
|
|
Select by real group ID (RGID) or name. Identical to
|
|
<B>-G</B>.
|
|
|
|
<DT id="31"><B>--group</B><I> grplist</I>
|
|
|
|
<DD>
|
|
Select by effective group ID (EGID) or name. This selects the processes
|
|
whose effective group name or ID is in
|
|
<I>grplist</I>.
|
|
|
|
The effective group ID describes the group whose file access permissions are
|
|
used by the process (see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+getegid">getegid</A></I>(2)).
|
|
|
|
The
|
|
<B>-g</B>
|
|
|
|
option is often an alternative to
|
|
<B>--group</B>.
|
|
|
|
<DT id="32"><B>p</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by process ID. Identical to
|
|
<B>-p</B>
|
|
|
|
and
|
|
<B>--pid</B>.
|
|
|
|
<DT id="33"><B>-p</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by PID. This selects the processes whose process ID numbers appear in
|
|
<I>pidlist</I>.
|
|
|
|
Identical to
|
|
<B>p</B>
|
|
|
|
and
|
|
<B>--pid</B>.
|
|
|
|
<DT id="34"><B>--pid</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by process ID. Identical to
|
|
<B>-p</B>
|
|
|
|
and
|
|
<B>p</B>.
|
|
|
|
<DT id="35"><B>--ppid</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by parent process ID. This selects the processes with a parent
|
|
process ID in
|
|
<I>pidlist</I>.
|
|
|
|
That is, it selects processes that are children of those listed in
|
|
<I>pidlist</I>.
|
|
|
|
<DT id="36"><B>q</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by process ID (quick mode). Identical to
|
|
<B>-q</B>
|
|
|
|
and
|
|
<B>--quick-pid</B>.
|
|
|
|
<DT id="37"><B>-q</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by PID (quick mode).
|
|
This selects the processes whose process ID numbers appear in
|
|
<I>pidlist</I>.
|
|
|
|
With this option <B>ps</B> reads the necessary info only
|
|
for the pids listed in the
|
|
<I>pidlist</I>
|
|
|
|
and doesn't apply additional filtering rules.
|
|
The order of pids is unsorted and preserved.
|
|
No additional selection options,
|
|
sorting and forest type listings are allowed in this mode.
|
|
Identical to
|
|
<B>q</B>
|
|
|
|
and
|
|
<B>--quick-pid</B>.
|
|
|
|
<DT id="38"><B>--quick-pid</B><I> pidlist</I>
|
|
|
|
<DD>
|
|
Select by process ID (quick mode). Identical to
|
|
<B>-q</B>
|
|
|
|
and
|
|
<B>q</B>.
|
|
|
|
<DT id="39"><B>-s</B><I> sesslist</I>
|
|
|
|
<DD>
|
|
Select by session ID. This selects the processes with a session ID specified
|
|
in
|
|
<I>sesslist</I>.
|
|
|
|
<DT id="40"><B>--sid</B><I> sesslist</I>
|
|
|
|
<DD>
|
|
Select by session ID. Identical to
|
|
<B>-s</B>.
|
|
|
|
<DT id="41"><B>t</B><I> ttylist</I>
|
|
|
|
<DD>
|
|
Select by tty. Nearly identical to
|
|
<B>-t</B>
|
|
|
|
and
|
|
<B>--tty</B>,
|
|
|
|
but can also
|
|
be used with an empty
|
|
<I>ttylist</I>
|
|
|
|
to indicate the terminal associated with
|
|
<B>ps</B>.
|
|
|
|
Using the
|
|
<B>T</B>
|
|
|
|
option is considered cleaner than using
|
|
<B>t</B>
|
|
|
|
with an empty
|
|
<I>ttylist</I>.
|
|
|
|
<DT id="42"><B>-t</B><I> ttylist</I>
|
|
|
|
<DD>
|
|
Select by tty. This selects the processes associated with the terminals
|
|
given in
|
|
<I>ttylist</I>.
|
|
|
|
Terminals (ttys, or screens for text output) can be specified in several
|
|
forms: /dev/ttyS1, ttyS1, S1. A plain "-" may be used to select processes
|
|
not attached to any terminal.
|
|
<DT id="43"><B>--tty</B><I> ttylist</I>
|
|
|
|
<DD>
|
|
Select by terminal. Identical to
|
|
<B>-t</B>
|
|
|
|
and
|
|
<B>t</B>.
|
|
|
|
<DT id="44"><B>U</B><I> userlist</I>
|
|
|
|
<DD>
|
|
Select by effective user ID (EUID) or name. This selects the processes whose
|
|
effective user name or ID is in
|
|
<I>userlist</I>.
|
|
|
|
The effective user ID describes the user whose file access permissions are
|
|
used by the process (see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+geteuid">geteuid</A></I>(2)).
|
|
|
|
Identical to
|
|
<B>-u</B>
|
|
|
|
and
|
|
<B>--user</B>.
|
|
|
|
<DT id="45"><B>-U</B><I> userlist</I>
|
|
|
|
<DD>
|
|
Select by real user ID (RUID) or name. It selects the processes whose real
|
|
user name or ID is in the
|
|
<I>userlist</I>
|
|
|
|
list. The real user ID identifies the user who created the process, see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+getuid">getuid</A></I>(2).
|
|
|
|
<DT id="46"><B>-u</B><I> userlist</I>
|
|
|
|
<DD>
|
|
Select by effective user ID (EUID) or name. This selects the processes whose
|
|
effective user name or ID is in
|
|
<I>userlist</I>.
|
|
|
|
<P>
|
|
The effective user ID describes the user whose file
|
|
access permissions are used by the process (see
|
|
<I><A HREF="/cgi-bin/man/man2html?2+geteuid">geteuid</A></I>(2)).
|
|
|
|
Identical to
|
|
<B>U</B>
|
|
|
|
and
|
|
<B>--user</B>.
|
|
|
|
<DT id="47"><B>--User</B><I> userlist</I>
|
|
|
|
<DD>
|
|
Select by real user ID (RUID) or name. Identical to
|
|
<B>-U</B>.
|
|
|
|
<DT id="48"><B>--user</B><I> userlist</I>
|
|
|
|
<DD>
|
|
Select by effective user ID (EUID) or name. Identical to
|
|
<B>-u</B>
|
|
|
|
and
|
|
<B>U</B>.
|
|
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>OUTPUT FORMAT CONTROL</H2>
|
|
|
|
These options are used to choose the information displayed by
|
|
<B>ps</B>.
|
|
|
|
The output may differ by personality.
|
|
<DL COMPACT>
|
|
<DT id="49"><B>-c</B>
|
|
|
|
<DD>
|
|
Show different scheduler information for the
|
|
<B>-l</B>
|
|
|
|
option.
|
|
<DT id="50"><B>--context</B>
|
|
|
|
<DD>
|
|
Display security context format (for SELinux).
|
|
<DT id="51"><B>-f</B>
|
|
|
|
<DD>
|
|
Do full-format listing. This option can be combined with many other
|
|
UNIX-style options to add additional columns. It also causes the command
|
|
arguments to be printed. When used with
|
|
<B>-L</B>,
|
|
|
|
the NLWP (number of threads) and LWP (thread ID) columns will be added. See
|
|
the
|
|
<B>c</B>
|
|
|
|
option, the format keyword
|
|
<B>args</B>,
|
|
|
|
and the format keyword
|
|
<B>comm</B>.
|
|
|
|
<DT id="52"><B>-F</B>
|
|
|
|
<DD>
|
|
Extra full format. See the
|
|
<B>-f</B>
|
|
|
|
option, which
|
|
<B>-F</B>
|
|
|
|
implies.
|
|
<DT id="53"><B>--format</B><I> format</I>
|
|
|
|
<DD>
|
|
user-defined format. Identical to
|
|
<B>-o</B>
|
|
|
|
and
|
|
<B>o</B>.
|
|
|
|
<DT id="54"><B>j</B>
|
|
|
|
<DD>
|
|
BSD job control format.
|
|
<DT id="55"><B>-j</B>
|
|
|
|
<DD>
|
|
Jobs format.
|
|
<DT id="56"><B>l</B>
|
|
|
|
<DD>
|
|
Display BSD long format.
|
|
<DT id="57"><B>-l</B>
|
|
|
|
<DD>
|
|
Long format. The
|
|
<B>-y</B>
|
|
|
|
option is often useful with this.
|
|
<DT id="58"><B>-M</B>
|
|
|
|
<DD>
|
|
Add a column of security data. Identical to
|
|
<B>Z</B>
|
|
|
|
(for SELinux).
|
|
<DT id="59"><B>O</B><I> format</I>
|
|
|
|
<DD>
|
|
is preloaded
|
|
<B>o</B>
|
|
|
|
(overloaded). The BSD
|
|
<B>O</B>
|
|
|
|
option can act like
|
|
<B>-O</B>
|
|
|
|
(user-defined output format with some common fields predefined) or can be
|
|
used to specify sort order. Heuristics are used to determine the behavior of
|
|
this option. To ensure that the desired behavior is obtained (sorting or
|
|
formatting), specify the option in some other way (e.g. with
|
|
<B>-O</B>
|
|
|
|
or
|
|
<B>--sort</B>).
|
|
|
|
When used as a formatting option, it is identical to
|
|
<B>-O</B>,
|
|
|
|
with the BSD personality.
|
|
<DT id="60"><B>-O</B><I> format</I>
|
|
|
|
<DD>
|
|
Like
|
|
<B>-o</B>,
|
|
|
|
but preloaded with some default columns. Identical to
|
|
<B>-o pid,:</B><I>format</I><B>,:state,:tname,:time,:command</B>
|
|
|
|
or
|
|
<B>-o pid,:</B><I>format</I><B>,:tname,:time,:cmd</B><I></I>,
|
|
|
|
see
|
|
<B>-o</B>
|
|
|
|
below.
|
|
<DT id="61"><B>o</B><I> format</I>
|
|
|
|
<DD>
|
|
Specify user-defined format. Identical to
|
|
<B>-o</B>
|
|
|
|
and
|
|
<B>--format</B>.
|
|
|
|
<DT id="62"><B>-o</B><I> format</I>
|
|
|
|
<DD>
|
|
User-defined format.
|
|
<I>format</I>
|
|
|
|
is a single argument in the form of a blank-separated or comma-separated
|
|
list, which offers a way to specify individual output columns. The
|
|
recognized keywords are described in the
|
|
<B>STANDARD FORMAT SPECIFIERS</B>
|
|
|
|
section below. Headers may be renamed
|
|
(<B>ps -o pid,:ruser=RealUser -o comm=Command</B>)
|
|
|
|
as desired.
|
|
If all column headers are empty
|
|
(<B>ps -o pid= -o comm=</B>)
|
|
|
|
then the header line will not be output. Column width will increase as
|
|
needed for wide headers; this may be used to widen up columns such as WCHAN
|
|
(<B>ps -o pid,:wchan=:WIDE-:WCHAN-:COLUMN -o comm</B>).
|
|
|
|
Explicit width
|
|
control
|
|
(<B>ps opid,:wchan:42,:cmd</B>)
|
|
|
|
is offered too. The behavior of
|
|
<B>ps -o pid=X,:comm=Y</B>
|
|
|
|
varies with personality; output may be one column named "X,:comm=Y" or two
|
|
columns named "X" and "Y". Use multiple
|
|
<B>-o</B>
|
|
|
|
options when in doubt. Use the
|
|
<B>PS_FORMAT</B>
|
|
|
|
environment variable to specify a default as desired; DefSysV and DefBSD are
|
|
macros that may be used to choose the default UNIX or BSD columns.
|
|
<DT id="63"><B>s</B>
|
|
|
|
<DD>
|
|
Display signal format.
|
|
<DT id="64"><B>u</B>
|
|
|
|
<DD>
|
|
Display user-oriented format.
|
|
<DT id="65"><B>v</B>
|
|
|
|
<DD>
|
|
Display virtual memory format.
|
|
<DT id="66"><B>X</B>
|
|
|
|
<DD>
|
|
Register format.
|
|
<DT id="67"><B>-y</B>
|
|
|
|
<DD>
|
|
Do not show flags; show rss in place of addr. This option can only be used
|
|
with
|
|
<B>-l</B>.
|
|
|
|
<DT id="68"><B>Z</B>
|
|
|
|
<DD>
|
|
Add a column of security data. Identical to
|
|
<B>-M</B>
|
|
|
|
(for SELinux).
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>OUTPUT MODIFIERS</H2>
|
|
|
|
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="69"><B>c</B>
|
|
|
|
<DD>
|
|
Show the true command name. This is derived from the name of the executable
|
|
file, rather than from the argv value. Command arguments and any
|
|
modifications to them are thus not shown. This option effectively turns the
|
|
<B>args</B>
|
|
|
|
format keyword into the
|
|
<B>comm</B>
|
|
|
|
format keyword; it is useful with the
|
|
<B>-f</B>
|
|
|
|
format option and with the various BSD-style format options, which all
|
|
normally display the command arguments. See the
|
|
<B>-f</B>
|
|
|
|
option, the format
|
|
keyword
|
|
<B>args</B>,
|
|
|
|
and the format keyword
|
|
<B>comm</B>.
|
|
|
|
<DT id="70"><B>--cols</B><I> n</I>
|
|
|
|
<DD>
|
|
Set screen width.
|
|
<DT id="71"><B>--columns</B><I> n</I>
|
|
|
|
<DD>
|
|
Set screen width.
|
|
<DT id="72"><B>--cumulative</B>
|
|
|
|
<DD>
|
|
Include some dead child process data (as a sum with the parent).
|
|
<DT id="73"><B>e</B>
|
|
|
|
<DD>
|
|
Show the environment after the command.
|
|
<DT id="74"><B>f</B>
|
|
|
|
<DD>
|
|
ASCII art process hierarchy (forest).
|
|
<DT id="75"><B>--forest</B>
|
|
|
|
<DD>
|
|
ASCII art process tree.
|
|
<DT id="76"><B>h</B>
|
|
|
|
<DD>
|
|
No header. (or, one header per screen in the BSD personality). The
|
|
<B>h</B>
|
|
|
|
option is problematic. Standard BSD
|
|
<B>ps</B>
|
|
|
|
uses this option to print a header on each page of output, but older Linux
|
|
<B>ps</B>
|
|
|
|
uses this option to totally disable the header. This version of
|
|
<B>ps</B>
|
|
|
|
follows the Linux usage of not printing the header unless the BSD personality
|
|
has been selected, in which case it prints a header on each page of output.
|
|
Regardless of the current personality, you can use the long options
|
|
<B>--headers</B>
|
|
|
|
and
|
|
<B>--no-headers</B>
|
|
|
|
to enable printing headers each page or disable headers entirely,
|
|
respectively.
|
|
<DT id="77"><B>-H</B>
|
|
|
|
<DD>
|
|
Show process hierarchy (forest).
|
|
<DT id="78"><B>--headers</B>
|
|
|
|
<DD>
|
|
Repeat header lines, one per page of output.
|
|
<DT id="79"><B>k</B><I> spec</I>
|
|
|
|
<DD>
|
|
Specify sorting order. Sorting syntax is
|
|
[<B>+</B>|<B>-</B>]<I>key/</I>[,[<B>+</B>|<B>-</B>]<I>key</I>[,...]].
|
|
|
|
Choose a multi-letter key from the
|
|
<B>STANDARD FORMAT SPECIFIERS</B>
|
|
|
|
section. The "+" is optional since default direction is increasing
|
|
numerical or lexicographic order. Identical to
|
|
<B>--sort</B>.
|
|
|
|
<DL COMPACT><DT id="80"><DD>
|
|
<DL COMPACT>
|
|
<DT id="81"><DD>
|
|
Examples:
|
|
<BR>
|
|
|
|
<B>ps jaxkuid,-ppid,+pid</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps axk comm o comm,args</B>
|
|
|
|
<BR>
|
|
|
|
<B>ps kstart_time -ef</B>
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<DT id="82"><B>--lines</B><I> n</I>
|
|
|
|
<DD>
|
|
Set screen height.
|
|
<DT id="83"><B>n</B>
|
|
|
|
<DD>
|
|
Numeric output for WCHAN and USER (including all types of UID and GID).
|
|
<DT id="84"><B>--no-headers</B>
|
|
|
|
<DD>
|
|
Print no header line at all.
|
|
<B>--no-heading</B>
|
|
|
|
is an alias for this option.
|
|
<DT id="85"><B>O</B><I> order</I>
|
|
|
|
<DD>
|
|
Sorting order (overloaded).
|
|
The BSD
|
|
<B>O</B>
|
|
|
|
option can act like
|
|
<B>-O</B>
|
|
|
|
(user-defined output format with some common fields predefined) or can be
|
|
used to specify sort order. Heuristics are used to determine the behavior of
|
|
this option. To ensure that the desired behavior is obtained (sorting or
|
|
formatting), specify the option in some other way (e.g. with
|
|
<B>-O</B>
|
|
|
|
or
|
|
<B>--sort</B>).
|
|
|
|
<DT id="86"><DD>
|
|
For sorting, obsolete BSD
|
|
<B>O</B>
|
|
|
|
option syntax is
|
|
<B>O</B>[<B>+</B>|<B>-</B>]<I>k1</I>[,[<B>+</B>|<B>-</B>]<I>k2</I>[,...]].
|
|
|
|
It orders the processes listing according to the multilevel sort specified by
|
|
the sequence of one-letter short keys
|
|
<I>k1</I>,<I>k2</I>, ...
|
|
|
|
described in the
|
|
<B>OBSOLETE SORT KEYS</B>
|
|
|
|
section below. The "+" is currently optional, merely re-iterating the
|
|
default direction on a key, but may help to distinguish an
|
|
<B>O</B>
|
|
|
|
sort from an
|
|
<B>O</B>
|
|
|
|
format. The "-" reverses direction only on the key it precedes.
|
|
<DT id="87"><B>--rows</B><I> n</I>
|
|
|
|
<DD>
|
|
Set screen height.
|
|
<DT id="88"><B>S</B>
|
|
|
|
<DD>
|
|
Sum up some information, such as CPU usage, from dead child processes into
|
|
their parent. This is useful for examining a system where a parent process
|
|
repeatedly forks off short-lived children to do work.
|
|
<DT id="89"><B>--sort</B><I> spec</I>
|
|
|
|
<DD>
|
|
Specify sorting order. Sorting syntax is
|
|
[<I>+</I>|<I>-</I>]<I>key</I>[,[<B>+</B>|<B>-</B>]<I>key</I>[,...]].
|
|
|
|
Choose a multi-letter key from the
|
|
<B>STANDARD FORMAT SPECIFIERS</B>
|
|
|
|
section. The "+" is optional since default direction is increasing numerical
|
|
or lexicographic order. Identical to
|
|
<B>k</B>.
|
|
|
|
For example:
|
|
<B>ps jax --sort=:uid,:-ppid,:+pid</B>
|
|
|
|
<DT id="90"><B>w</B>
|
|
|
|
<DD>
|
|
Wide output. Use this option twice for unlimited width.
|
|
<DT id="91"><B>-w</B>
|
|
|
|
<DD>
|
|
Wide output. Use this option twice for unlimited width.
|
|
<DT id="92"><B>--width</B><I> n</I>
|
|
|
|
<DD>
|
|
Set screen width.
|
|
|
|
|
|
</DL>
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>THREAD DISPLAY</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="93"><B>H</B>
|
|
|
|
<DD>
|
|
Show threads as if they were processes.
|
|
<DT id="94"><B>-L</B>
|
|
|
|
<DD>
|
|
Show threads, possibly with LWP and NLWP columns.
|
|
<DT id="95"><B>m</B>
|
|
|
|
<DD>
|
|
Show threads after processes.
|
|
<DT id="96"><B>-m</B>
|
|
|
|
<DD>
|
|
Show threads after processes.
|
|
<DT id="97"><B>-T</B>
|
|
|
|
<DD>
|
|
Show threads, possibly with SPID column.
|
|
|
|
</DL>
|
|
<A NAME="lbAK"> </A>
|
|
<H2>OTHER INFORMATION</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="98"><B>--help</B><I> section</I>
|
|
|
|
<DD>
|
|
Print a help message. The section argument can be one of
|
|
<I>s</I>imple,
|
|
|
|
<I>l</I>ist,
|
|
|
|
<I>o</I>utput,
|
|
|
|
<I>t</I>hreads,
|
|
|
|
<I>m</I>isc, or
|
|
|
|
<I>a</I>ll.
|
|
|
|
The argument can be shortened to one of the underlined letters as in:
|
|
s|l|o|t|m|a.
|
|
<DT id="99"><B>--info</B>
|
|
|
|
<DD>
|
|
Print debugging info.
|
|
<DT id="100"><B>L</B>
|
|
|
|
<DD>
|
|
List all format specifiers.
|
|
<DT id="101"><B>V</B>
|
|
|
|
<DD>
|
|
Print the procps-ng version.
|
|
<DT id="102"><B>-V</B>
|
|
|
|
<DD>
|
|
Print the procps-ng version.
|
|
<DT id="103"><B>--version</B>
|
|
|
|
<DD>
|
|
Print the procps-ng version.
|
|
|
|
</DL>
|
|
<A NAME="lbAL"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
This
|
|
<B>ps</B>
|
|
|
|
works by reading the virtual files in /proc. This
|
|
<B>ps</B>
|
|
|
|
does not need to be setuid kmem or have any privileges to run. Do not give
|
|
this
|
|
<B>ps</B>
|
|
|
|
any special permissions.
|
|
<P>
|
|
|
|
CPU usage is currently expressed as the percentage of time spent running
|
|
during the entire lifetime of a process. This is not ideal, and it does not
|
|
conform to the standards that
|
|
<B>ps</B>
|
|
|
|
otherwise conforms to. CPU usage is unlikely to add up to exactly 100%.
|
|
<P>
|
|
|
|
The SIZE and RSS fields don't count some parts of a process including the
|
|
page tables, kernel stack, struct thread_info, and struct task_struct. This
|
|
is usually at least 20 KiB of memory that is always resident. SIZE is the
|
|
virtual size of the process (code+:data+:stack).
|
|
<P>
|
|
|
|
Processes marked <defunct> are dead processes (so-called "zombies") that
|
|
remain because their parent has not destroyed them properly. These processes
|
|
will be destroyed by
|
|
<I><A HREF="/cgi-bin/man/man2html?8+init">init</A></I>(8)
|
|
|
|
if the parent process exits.
|
|
<P>
|
|
|
|
If the length of the username is greater than the length of the display
|
|
column, the username will be truncated. See the -o and -O formatting
|
|
options to customize length.
|
|
<P>
|
|
|
|
Commands options such as
|
|
<B>ps -aux</B>
|
|
|
|
are not recommended as it is a confusion of two different standards.
|
|
According to the POSIX and UNIX standards, the above command asks to
|
|
display all processes with a TTY (generally the commands users are
|
|
running) plus all processes owned by a user named "x". If that user
|
|
doesn't exist, then
|
|
<B>ps</B>
|
|
|
|
will assume you really meant
|
|
"<B>ps</B>
|
|
|
|
<I>aux</I>".
|
|
|
|
<A NAME="lbAM"> </A>
|
|
<H2>PROCESS FLAGS</H2>
|
|
|
|
The sum of these values is displayed in the "F" column,
|
|
which is provided by the
|
|
<B>flags</B>
|
|
|
|
output specifier:
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="104"><DD>
|
|
|
|
<DL COMPACT>
|
|
<DT id="105">1<DD>
|
|
forked but didn't exec
|
|
<DT id="106">4<DD>
|
|
used super-user privileges
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<A NAME="lbAN"> </A>
|
|
<H2>PROCESS STATE CODES</H2>
|
|
|
|
Here are the different values that the
|
|
<B>s</B>, <B>stat</B> and <B>state</B>
|
|
|
|
output specifiers (header "STAT" or "S") will display to describe the state
|
|
of a process:
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="107"><DD>
|
|
|
|
<DL COMPACT>
|
|
<DT id="108">D<DD>
|
|
uninterruptible sleep (usually IO)
|
|
<DT id="109">I<DD>
|
|
Idle kernel thread
|
|
<DT id="110">R<DD>
|
|
running or runnable (on run queue)
|
|
<DT id="111">S<DD>
|
|
interruptible sleep (waiting for an event to complete)
|
|
<DT id="112">T<DD>
|
|
stopped by job control signal
|
|
<DT id="113">t<DD>
|
|
stopped by debugger during the tracing
|
|
<DT id="114">W<DD>
|
|
paging (not valid since the 2.6.xx kernel)
|
|
<DT id="115">X<DD>
|
|
dead (should never be seen)
|
|
<DT id="116">Z<DD>
|
|
defunct ("zombie") process, terminated but not reaped by its parent
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
For BSD formats and when the
|
|
<B>stat</B>
|
|
|
|
keyword is used, additional characters may be displayed:
|
|
<P>
|
|
|
|
<DL COMPACT><DT id="117"><DD>
|
|
|
|
<DL COMPACT>
|
|
<DT id="118"><<DD>
|
|
high-priority (not nice to other users)
|
|
<DT id="119">N<DD>
|
|
low-priority (nice to other users)
|
|
<DT id="120">L<DD>
|
|
has pages locked into memory (for real-time and custom IO)
|
|
<DT id="121">s<DD>
|
|
is a session leader
|
|
<DT id="122">l<DD>
|
|
is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
|
|
<DT id="123">+<DD>
|
|
is in the foreground process group
|
|
|
|
</DL>
|
|
</DL>
|
|
|
|
<A NAME="lbAO"> </A>
|
|
<H2>OBSOLETE SORT KEYS</H2>
|
|
|
|
These keys are used by the BSD
|
|
<B>O</B>
|
|
|
|
option (when it is used for sorting). The GNU
|
|
<B>--sort</B>
|
|
|
|
option doesn't use these keys, but the specifiers described below in the
|
|
<B>STANDARD FORMAT SPECIFIERS</B>
|
|
|
|
section. Note that the values used in sorting are the internal values
|
|
<B>ps</B>
|
|
|
|
uses and not the "cooked" values used in some of the output format fields
|
|
(e.g. sorting on tty will sort into device number, not according to the
|
|
terminal name displayed). Pipe
|
|
<B>ps</B>
|
|
|
|
output into the
|
|
<B><A HREF="/cgi-bin/man/man2html?1+sort">sort</A></B>(1)
|
|
|
|
command if you want to sort the cooked values.
|
|
<TABLE>
|
|
<TR VALIGN=top><TD><B>KEY</B></TD><TD>LONG</TD><TD>DESCRIPTION<BR></TD></TR>
|
|
<TR VALIGN=top><TD>c</TD><TD>cmd</TD><TD>simple name of executable<BR></TD></TR>
|
|
<TR VALIGN=top><TD>C</TD><TD>pcpu</TD><TD>cpu utilization<BR></TD></TR>
|
|
<TR VALIGN=top><TD>f</TD><TD>flags</TD><TD>flags as in long format F field<BR></TD></TR>
|
|
<TR VALIGN=top><TD>g</TD><TD>pgrp</TD><TD>process group ID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>G</TD><TD>tpgid</TD><TD>controlling tty process group ID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>j</TD><TD>cutime</TD><TD>cumulative user time<BR></TD></TR>
|
|
<TR VALIGN=top><TD>J</TD><TD>cstime</TD><TD>cumulative system time<BR></TD></TR>
|
|
<TR VALIGN=top><TD>k</TD><TD>utime</TD><TD>user time<BR></TD></TR>
|
|
<TR VALIGN=top><TD>m</TD><TD>min_flt</TD><TD>number of minor page faults<BR></TD></TR>
|
|
<TR VALIGN=top><TD>M</TD><TD>maj_flt</TD><TD>number of major page faults<BR></TD></TR>
|
|
<TR VALIGN=top><TD>n</TD><TD>cmin_flt</TD><TD>cumulative minor page faults<BR></TD></TR>
|
|
<TR VALIGN=top><TD>N</TD><TD>cmaj_flt</TD><TD>cumulative major page faults<BR></TD></TR>
|
|
<TR VALIGN=top><TD>o</TD><TD>session</TD><TD>session ID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>p</TD><TD>pid</TD><TD>process ID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>P</TD><TD>ppid</TD><TD>parent process ID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>r</TD><TD>rss</TD><TD>resident set size<BR></TD></TR>
|
|
<TR VALIGN=top><TD>R</TD><TD>resident</TD><TD>resident pages<BR></TD></TR>
|
|
<TR VALIGN=top><TD>s</TD><TD>size</TD><TD>memory size in kilobytes<BR></TD></TR>
|
|
<TR VALIGN=top><TD>S</TD><TD>share</TD><TD>amount of shared pages<BR></TD></TR>
|
|
<TR VALIGN=top><TD>t</TD><TD>tty</TD><TD>the device number of the controlling tty<BR></TD></TR>
|
|
<TR VALIGN=top><TD>T</TD><TD>start_time</TD><TD>time process was started<BR></TD></TR>
|
|
<TR VALIGN=top><TD>U</TD><TD>uid</TD><TD>user ID number<BR></TD></TR>
|
|
<TR VALIGN=top><TD>u</TD><TD>user</TD><TD>user name<BR></TD></TR>
|
|
<TR VALIGN=top><TD>v</TD><TD>vsize</TD><TD>total VM size in KiB<BR></TD></TR>
|
|
<TR VALIGN=top><TD>y</TD><TD>priority</TD><TD>kernel scheduling priority<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<A NAME="lbAP"> </A>
|
|
<H2>AIX FORMAT DESCRIPTORS</H2>
|
|
|
|
This
|
|
<B>ps</B>
|
|
|
|
supports AIX format descriptors, which work somewhat like the
|
|
formatting codes of
|
|
<I><A HREF="/cgi-bin/man/man2html?1+printf">printf</A></I>(1)
|
|
|
|
and
|
|
<I><A HREF="/cgi-bin/man/man2html?3+printf">printf</A></I>(3).
|
|
|
|
For example, the normal default output can be produced with this:
|
|
<B>ps -eo %p %y %x %c</B>.
|
|
|
|
The
|
|
<B>NORMAL</B>
|
|
|
|
codes are described in the next section.
|
|
<TABLE>
|
|
<TR VALIGN=top><TD><B>CODE</B></TD><TD>NORMAL</TD><TD>HEADER<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%C</TD><TD>pcpu</TD><TD>%CPU<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%G</TD><TD>group</TD><TD>GROUP<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%P</TD><TD>ppid</TD><TD>PPID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%U</TD><TD>user</TD><TD>USER<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%a</TD><TD>args</TD><TD>COMMAND<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%c</TD><TD>comm</TD><TD>COMMAND<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%g</TD><TD>rgroup</TD><TD>RGROUP<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%n</TD><TD>nice</TD><TD>NI<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%p</TD><TD>pid</TD><TD>PID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%r</TD><TD>pgid</TD><TD>PGID<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%t</TD><TD>etime</TD><TD>ELAPSED<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%u</TD><TD>ruser</TD><TD>RUSER<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%x</TD><TD>time</TD><TD>TIME<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%y</TD><TD>tty</TD><TD>TTY<BR></TD></TR>
|
|
<TR VALIGN=top><TD>%z</TD><TD>vsz</TD><TD>VSZ<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<A NAME="lbAQ"> </A>
|
|
<H2>STANDARD FORMAT SPECIFIERS</H2>
|
|
|
|
Here are the different keywords that may be used to control the output
|
|
format (e.g., with option
|
|
<B>-o</B>)
|
|
|
|
or to sort the selected processes with the GNU-style
|
|
<B>--sort</B>
|
|
|
|
option.
|
|
<P>
|
|
|
|
For example:
|
|
<B>ps -eo pid,:user,:args --sort user</B>
|
|
|
|
<P>
|
|
|
|
This version of
|
|
<B>ps</B>
|
|
|
|
tries to recognize most of the keywords used in other implementations of
|
|
<B>ps</B>.
|
|
|
|
<P>
|
|
|
|
The following user-defined format specifiers may contain
|
|
spaces:
|
|
<B>args</B>, <B>cmd</B>, <B>comm</B>, <B>command</B>, <B>fname</B>, <B>ucmd</B>, <B>ucomm</B>,
|
|
|
|
<B>lstart</B>, <B>bsdstart</B>, <B>start</B>.
|
|
|
|
<P>
|
|
|
|
Some keywords may not be available for sorting.
|
|
<P>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<TABLE>
|
|
<TR VALIGN=top><TD><B>CODE </B></TD><TD><B>HEADER </B></TD><TD><B>DESCRIPTION</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>%cpu </B></TD><TD>%CPU </TD><TD>
|
|
cpu utilization of the process in "##.#" format. Currently, it is the CPU
|
|
time used divided by the time the process has been running (cputime/realtime
|
|
ratio), expressed as a percentage. It will not add up to 100% unless you are
|
|
lucky. (alias
|
|
<B>pcpu</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>%mem </B></TD><TD>%MEM </TD><TD>
|
|
ratio of the process's resident set size to the physical memory on the
|
|
machine, expressed as a percentage. (alias
|
|
<B>pmem</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>args </B></TD><TD>COMMAND </TD><TD>
|
|
command with all its arguments as a string.
|
|
Modifications to the arguments may be shown.
|
|
The output in this column may contain spaces.
|
|
A process marked <defunct> is partly dead,
|
|
waiting to be fully destroyed by its parent.
|
|
Sometimes the process args will be unavailable; when this happens,
|
|
<B>ps</B>
|
|
|
|
will instead print the executable name in brackets. (alias
|
|
<B>cmd</B>, <B>command</B>).
|
|
|
|
See also the
|
|
<B>comm</B>
|
|
|
|
format keyword, the
|
|
<B>-f</B>
|
|
|
|
option, and the
|
|
<B>c</B>
|
|
|
|
option.
|
|
<BR>
|
|
|
|
When specified last, this column will extend to the edge of the display. If
|
|
<B>ps</B>
|
|
|
|
can not determine display width, as when output is redirected (piped) into a
|
|
file or another command, the output width is undefined (it may be 80,
|
|
unlimited, determined by the
|
|
<B>TERM</B>
|
|
|
|
variable, and so on). The
|
|
<B>COLUMNS</B>
|
|
|
|
environment variable or
|
|
<B>--cols</B>
|
|
|
|
option may be used to exactly determine the width in this case. The
|
|
<B>w</B>
|
|
|
|
or
|
|
<B>-w</B>
|
|
|
|
option may be also be used to adjust width.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>blocked </B></TD><TD>BLOCKED </TD><TD>
|
|
mask of the blocked signals, see
|
|
<I><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></I>(7).
|
|
|
|
According to the width of the field, a 32 or 64-bit mask in hexadecimal
|
|
format is displayed. (alias
|
|
<B>sig_block</B>, <B>sigmask</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>bsdstart </B></TD><TD>START </TD><TD>
|
|
time the command started. If the process was started less than 24 hours ago,
|
|
the output format is " HH:MM", else it is " Mmm:SS" (where Mmm is the three
|
|
letters of the month). See also
|
|
<B>lstart</B>, <B>start</B>, <B>start_time</B>, and <B>stime</B>.
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>bsdtime </B></TD><TD>TIME </TD><TD>
|
|
accumulated cpu time, user + system. The display format is usually
|
|
"MMM:SS", but can be shifted to the right if the process used more than 999
|
|
minutes of cpu time.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>c </B></TD><TD>C </TD><TD>
|
|
processor utilization.
|
|
Currently, this is the integer value of the percent usage over the
|
|
lifetime of the process. (see
|
|
<B>%cpu</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>caught </B></TD><TD>CAUGHT </TD><TD>
|
|
mask of the caught signals, see
|
|
<I><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></I>(7).
|
|
|
|
According to the width of the field, a 32 or 64 bits mask in hexadecimal
|
|
format is displayed. (alias
|
|
<B>sig_catch</B>, <B>sigcatch</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cgname </B></TD><TD>CGNAME </TD><TD>
|
|
display name of control groups to which the process belongs.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cgroup </B></TD><TD>CGROUP </TD><TD>
|
|
display control groups to which the process belongs.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>class </B></TD><TD>CLS </TD><TD>
|
|
scheduling class of the process. (alias
|
|
<B>policy</B>, <B>cls</B>).
|
|
|
|
Field's possible values are:
|
|
<P>
|
|
|
|
-<TT> </TT>not reported<BR>
|
|
<BR>
|
|
|
|
TS<TT> </TT>SCHED_OTHER<BR>
|
|
<BR>
|
|
|
|
FF<TT> </TT>SCHED_FIFO<BR>
|
|
<BR>
|
|
|
|
RR<TT> </TT>SCHED_RR<BR>
|
|
<BR>
|
|
|
|
B<TT> </TT>SCHED_BATCH<BR>
|
|
<BR>
|
|
|
|
ISO<TT> </TT>SCHED_ISO<BR>
|
|
<BR>
|
|
|
|
IDL<TT> </TT>SCHED_IDLE<BR>
|
|
<BR>
|
|
|
|
DLN<TT> </TT>SCHED_DEADLINE<BR>
|
|
<BR>
|
|
|
|
?<TT> </TT>unknown value<BR>
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cls </B></TD><TD>CLS </TD><TD>
|
|
scheduling class of the process. (alias
|
|
<B>policy</B>, <B>cls</B>).
|
|
|
|
Field's possible values are:
|
|
<P>
|
|
|
|
-<TT> </TT>not reported<BR>
|
|
<BR>
|
|
|
|
TS<TT> </TT>SCHED_OTHER<BR>
|
|
<BR>
|
|
|
|
FF<TT> </TT>SCHED_FIFO<BR>
|
|
<BR>
|
|
|
|
RR<TT> </TT>SCHED_RR<BR>
|
|
<BR>
|
|
|
|
B<TT> </TT>SCHED_BATCH<BR>
|
|
<BR>
|
|
|
|
ISO<TT> </TT>SCHED_ISO<BR>
|
|
<BR>
|
|
|
|
IDL<TT> </TT>SCHED_IDLE<BR>
|
|
<BR>
|
|
|
|
DLN<TT> </TT>SCHED_DEADLINE<BR>
|
|
<BR>
|
|
|
|
?<TT> </TT>unknown value<BR>
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cmd </B></TD><TD>CMD </TD><TD>
|
|
see
|
|
<B>args</B>.
|
|
|
|
(alias
|
|
<B>args</B>, <B>command</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>comm </B></TD><TD>COMMAND </TD><TD>
|
|
command name (only the executable name). Modifications to the command name
|
|
will not be shown. A process marked <defunct> is partly dead, waiting to be
|
|
fully destroyed by its parent. The output in this column may contain spaces.
|
|
(alias
|
|
<B>ucmd</B>, <B>ucomm</B>).
|
|
|
|
See also the
|
|
<B>args format keyword,</B>
|
|
|
|
the
|
|
<B>-f</B>
|
|
|
|
option, and the
|
|
<B>c</B>
|
|
|
|
option.
|
|
<BR>
|
|
|
|
When specified last, this column will extend to the edge of the display. If
|
|
<B>ps</B>
|
|
|
|
can not determine display width, as when output is redirected (piped) into a
|
|
file or another command, the output width is undefined (it may be 80,
|
|
unlimited, determined by the
|
|
<B>TERM</B>
|
|
|
|
variable, and so on). The
|
|
<B>COLUMNS</B>
|
|
|
|
environment variable or
|
|
<B>--cols</B>
|
|
|
|
option may be used to exactly determine the width in this case. The
|
|
<B>w</B> or<B> -w</B>
|
|
|
|
option may be also be used to adjust width.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>command </B></TD><TD>COMMAND </TD><TD>
|
|
See
|
|
<B>args</B>.
|
|
|
|
(alias
|
|
<B>args</B>, <B>command</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cp </B></TD><TD>CP </TD><TD>
|
|
per-mill (tenths of a percent) CPU usage. (see
|
|
<B>%cpu</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cputime </B></TD><TD>TIME </TD><TD>
|
|
cumulative CPU time, "[DD-]hh:mm:ss" format. (alias
|
|
<B>time</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>cputimes </B></TD><TD>TIME </TD><TD>
|
|
cumulative CPU time in seconds (alias
|
|
<B>times</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>drs </B></TD><TD>DRS </TD><TD>
|
|
data resident set size, the amount of physical memory devoted to other than
|
|
executable code.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>egid </B></TD><TD>EGID </TD><TD>
|
|
effective group ID number of the process as a decimal integer. (alias
|
|
<B>gid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>egroup </B></TD><TD>EGROUP </TD><TD>
|
|
effective group ID of the process. This will be the textual group ID, if it
|
|
can be obtained and the field width permits, or a decimal representation
|
|
otherwise. (alias
|
|
<B>group</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>eip </B></TD><TD>EIP </TD><TD>
|
|
instruction pointer.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>esp </B></TD><TD>ESP </TD><TD>
|
|
stack pointer.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>etime </B></TD><TD>ELAPSED </TD><TD>
|
|
elapsed time since the process was started, in the form [[DD-]hh:]mm:ss.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>etimes </B></TD><TD>ELAPSED </TD><TD>
|
|
elapsed time since the process was started, in seconds.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>euid </B></TD><TD>EUID </TD><TD>
|
|
effective user ID (alias
|
|
<B>uid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>euser </B></TD><TD>EUSER </TD><TD>
|
|
effective user name. This will be the textual user ID, if it can be obtained
|
|
and the field width permits, or a decimal representation otherwise. The
|
|
<B>n</B>
|
|
|
|
option can be used to force the decimal representation. (alias
|
|
<B>uname</B>, <B>user</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>f </B></TD><TD>F </TD><TD>
|
|
flags associated with the process, see the
|
|
<B>PROCESS FLAGS</B>
|
|
|
|
section. (alias
|
|
<B>flag</B>, <B>flags</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>fgid </B></TD><TD>FGID </TD><TD>
|
|
filesystem access group ID. (alias
|
|
<B>fsgid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>fgroup </B></TD><TD>FGROUP </TD><TD>
|
|
filesystem access group ID. This will be the textual group ID, if it can
|
|
be obtained and the field width permits, or a decimal representation
|
|
otherwise. (alias
|
|
<B>fsgroup</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>flag </B></TD><TD>F </TD><TD>
|
|
see
|
|
<B>f</B>.
|
|
|
|
(alias
|
|
<B>f</B>, <B>flags</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>flags </B></TD><TD>F </TD><TD>
|
|
see
|
|
<B>f</B>.
|
|
|
|
(alias
|
|
<B>f</B>, <B>flag</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>fname </B></TD><TD>COMMAND </TD><TD>
|
|
first 8 bytes of the base name of the process's executable file. The output
|
|
in this column may contain spaces.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>fuid </B></TD><TD>FUID </TD><TD>
|
|
filesystem access user ID. (alias
|
|
<B>fsuid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>fuser </B></TD><TD>FUSER </TD><TD>
|
|
filesystem access user ID. This will be the textual user ID, if it can be
|
|
obtained and the field width permits, or a decimal representation otherwise.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>gid </B></TD><TD>GID </TD><TD>
|
|
see
|
|
<B>egid</B>.
|
|
|
|
(alias
|
|
<B>egid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>group </B></TD><TD>GROUP </TD><TD>
|
|
see
|
|
<B>egroup</B>.
|
|
|
|
(alias
|
|
<B>egroup</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ignored </B></TD><TD>IGNORED </TD><TD>
|
|
mask of the ignored signals, see
|
|
<I><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></I>(7).
|
|
|
|
According to the width of the field, a 32 or 64 bits mask in hexadecimal
|
|
format is displayed. (alias
|
|
<B>sig_ignore</B>, <B>sigignore</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ipcns </B></TD><TD>IPCNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>label </B></TD><TD>LABEL </TD><TD>
|
|
security label, most commonly used for SELinux context data. This is for
|
|
the
|
|
<I>Mandatory Access Control</I>
|
|
|
|
("MAC") found on high-security systems.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>lstart </B></TD><TD>STARTED </TD><TD>
|
|
time the command started. See also
|
|
<B>bsdstart</B>, <B>start</B>, <B>start_time</B>, and <B>stime</B>.
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>lsession </B></TD><TD>SESSION </TD><TD>
|
|
displays the login session identifier of a process,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>luid </B></TD><TD>LUID </TD><TD>
|
|
displays Login ID associated with a process.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>lwp </B></TD><TD>LWP </TD><TD>
|
|
light weight process (thread) ID of the dispatchable entity (alias
|
|
<B>spid</B>, <B>tid</B>).
|
|
|
|
See
|
|
<B>tid</B>
|
|
|
|
for additional information.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>lxc </B></TD><TD>LXC </TD><TD>
|
|
The name of the lxc container within which a task is running.
|
|
If a process is not running inside a container, a dash ('-') will be shown.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>machine </B></TD><TD>MACHINE </TD><TD>
|
|
displays the machine name for processes assigned to VM or container,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>maj_flt </B></TD><TD>MAJFLT </TD><TD>
|
|
The number of major page faults that have occurred with this process.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>min_flt </B></TD><TD>MINFLT </TD><TD>
|
|
The number of minor page faults that have occurred with this process.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>mntns </B></TD><TD>MNTNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>netns </B></TD><TD>NETNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ni </B></TD><TD>NI </TD><TD>
|
|
nice value.
|
|
This ranges from 19 (nicest) to -20 (not nice to others),
|
|
see
|
|
<I><A HREF="/cgi-bin/man/man2html?1+nice">nice</A></I>(1).
|
|
|
|
(alias
|
|
<B>nice</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>nice </B></TD><TD>NI </TD><TD>
|
|
see
|
|
<B>ni</B>.<B>(alias</B>
|
|
|
|
<B>ni</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>nlwp </B></TD><TD>NLWP </TD><TD>
|
|
number of lwps (threads) in the process. (alias
|
|
<B>thcount</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>numa </B></TD><TD>NUMA </TD><TD>
|
|
The node assocated with the most recently used processor.
|
|
A -1 means that NUMA information is unavailable.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>nwchan </B></TD><TD>WCHAN </TD><TD>
|
|
address of the kernel function where the process is sleeping (use
|
|
<B>wchan</B>
|
|
|
|
if you want the kernel function name). Running tasks will display a dash
|
|
('-') in this column.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ouid </B></TD><TD>OWNER </TD><TD>
|
|
displays the Unix user identifier of the owner of the session of a process,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pcpu </B></TD><TD>%CPU </TD><TD>
|
|
see
|
|
<B>%cpu</B>.
|
|
|
|
(alias
|
|
<B>%cpu</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pending </B></TD><TD>PENDING </TD><TD>
|
|
mask of the pending signals.
|
|
See
|
|
<I><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></I>(7).
|
|
|
|
Signals pending on the process are distinct from signals pending on
|
|
individual threads. Use the
|
|
<B>m</B>
|
|
|
|
option or the
|
|
<B>-m</B>
|
|
|
|
option to see both. According to the width of the field, a 32 or 64 bits
|
|
mask in hexadecimal format is displayed. (alias
|
|
<B>sig</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pgid </B></TD><TD>PGID </TD><TD>
|
|
process group ID or, equivalently, the process ID of the process group
|
|
leader. (alias
|
|
<B>pgrp</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pgrp </B></TD><TD>PGRP </TD><TD>
|
|
see
|
|
<B>pgid</B>.
|
|
|
|
(alias
|
|
<B>pgid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pid </B></TD><TD>PID </TD><TD>
|
|
a number representing the process ID (alias
|
|
<B>tgid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pidns </B></TD><TD>PIDNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pmem </B></TD><TD>%MEM </TD><TD>
|
|
see
|
|
<B>%mem</B>.
|
|
|
|
(alias
|
|
<B>%mem</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>policy </B></TD><TD>POL </TD><TD>
|
|
scheduling class of the process. (alias
|
|
<B>class</B>, <B>cls</B>).
|
|
|
|
Possible values are:
|
|
<P>
|
|
|
|
-<TT> </TT>not reported<BR>
|
|
<BR>
|
|
|
|
TS<TT> </TT>SCHED_OTHER<BR>
|
|
<BR>
|
|
|
|
FF<TT> </TT>SCHED_FIFO<BR>
|
|
<BR>
|
|
|
|
RR<TT> </TT>SCHED_RR<BR>
|
|
<BR>
|
|
|
|
B<TT> </TT>SCHED_BATCH<BR>
|
|
<BR>
|
|
|
|
ISO<TT> </TT>SCHED_ISO<BR>
|
|
<BR>
|
|
|
|
IDL<TT> </TT>SCHED_IDLE<BR>
|
|
<BR>
|
|
|
|
DLN<TT> </TT>SCHED_DEADLINE<BR>
|
|
<BR>
|
|
|
|
?<TT> </TT>unknown value<BR>
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ppid </B></TD><TD>PPID </TD><TD>
|
|
parent process ID.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>pri </B></TD><TD>PRI </TD><TD>
|
|
priority of the process. Higher number means lower priority.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>psr </B></TD><TD>PSR </TD><TD>
|
|
processor that process is currently assigned to.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rgid </B></TD><TD>RGID </TD><TD>
|
|
real group ID.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rgroup </B></TD><TD>RGROUP </TD><TD>
|
|
real group name. This will be the textual group ID, if it can be obtained
|
|
and the field width permits, or a decimal representation otherwise.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rss </B></TD><TD>RSS </TD><TD>
|
|
resident set size, the non-swapped physical memory that a task has used (in
|
|
kilobytes). (alias
|
|
<B>rssize</B>, <B>rsz</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rssize </B></TD><TD>RSS </TD><TD>
|
|
see
|
|
<B>rss</B>.
|
|
|
|
(alias
|
|
<B>rss</B>, <B>rsz</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rsz </B></TD><TD>RSZ </TD><TD>
|
|
see
|
|
<B>rss</B>.
|
|
|
|
(alias
|
|
<B>rss</B>, <B>rssize</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>rtprio </B></TD><TD>RTPRIO </TD><TD>
|
|
realtime priority.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ruid </B></TD><TD>RUID </TD><TD>
|
|
real user ID.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ruser </B></TD><TD>RUSER </TD><TD>
|
|
real user ID. This will be the textual user ID, if it can be obtained and
|
|
the field width permits, or a decimal representation otherwise.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>s </B></TD><TD>S </TD><TD>
|
|
minimal state display (one character). See section
|
|
<B>PROCESS STATE CODES</B>
|
|
|
|
for the different values. See also
|
|
<B>stat</B>
|
|
|
|
if you want additional information displayed. (alias
|
|
<B>state</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sched </B></TD><TD>SCH </TD><TD>
|
|
scheduling policy of the process. The policies SCHED_OTHER (SCHED_NORMAL),
|
|
SCHED_FIFO, SCHED_RR, SCHED_BATCH, SCHED_ISO, SCHED_IDLE and SCHED_DEADLINE are
|
|
respectively displayed as 0, 1, 2, 3, 4, 5 and 6.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>seat </B></TD><TD>SEAT </TD><TD>
|
|
displays the identifier associated with all hardware devices assigned
|
|
to a specific workplace,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sess </B></TD><TD>SESS </TD><TD>
|
|
session ID or, equivalently, the process ID of the session leader. (alias
|
|
<B>session</B>, <B>sid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sgi_p </B></TD><TD>P </TD><TD>
|
|
processor that the process is currently executing on. Displays "*" if the
|
|
process is not currently running or runnable.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sgid </B></TD><TD>SGID </TD><TD>
|
|
saved group ID. (alias
|
|
<B>svgid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sgroup </B></TD><TD>SGROUP </TD><TD>
|
|
saved group name. This will be the textual group ID, if it can be obtained
|
|
and the field width permits, or a decimal representation otherwise.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sid </B></TD><TD>SID </TD><TD>
|
|
see
|
|
<B>sess</B>.
|
|
|
|
(alias
|
|
<B>sess</B>, <B>session</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sig </B></TD><TD>PENDING </TD><TD>
|
|
see
|
|
<B>pending</B>.
|
|
|
|
(alias
|
|
<B>pending</B>, <B>sig_pend</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sigcatch </B></TD><TD>CAUGHT </TD><TD>
|
|
see
|
|
<B>caught</B>.
|
|
|
|
(alias
|
|
<B>caught</B>, <B>sig_catch</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sigignore </B></TD><TD>IGNORED </TD><TD>
|
|
see
|
|
<B>ignored</B>.
|
|
|
|
(alias
|
|
<B>ignored</B>, <B>sig_ignore</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sigmask </B></TD><TD>BLOCKED </TD><TD>
|
|
see
|
|
<B>blocked</B>.
|
|
|
|
(alias
|
|
<B>blocked</B>, <B>sig_block</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>size </B></TD><TD>SIZE </TD><TD>
|
|
approximate amount of swap space that would be required if the process were
|
|
to dirty all writable pages and then be swapped out. This number is very
|
|
rough!
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>slice </B></TD><TD>SLICE </TD><TD>
|
|
displays the slice unit which a process belongs to,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>spid </B></TD><TD>SPID </TD><TD>
|
|
see
|
|
<B>lwp</B>.
|
|
|
|
(alias
|
|
<B>lwp</B>, <B>tid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>stackp </B></TD><TD>STACKP </TD><TD>
|
|
address of the bottom (start) of stack for the process.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>start </B></TD><TD>STARTED </TD><TD>
|
|
time the command started. If the process was started less than 24 hours ago,
|
|
the output format is "HH:MM:SS", else it is " Mmm dd" (where Mmm is a
|
|
three-letter month name). See also
|
|
<B>lstart</B>, <B>bsdstart</B>, <B>start_time</B>, and <B>stime</B>.
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>start_time </B></TD><TD>START </TD><TD>
|
|
starting time or date of the process. Only the year will be displayed if the
|
|
process was not started the same year
|
|
<B>ps</B>
|
|
|
|
was invoked, or "MmmDD" if it was not started the same day, or "HH:MM"
|
|
otherwise. See also
|
|
<B>bsdstart</B>, <B>start</B>, <B>lstart</B>, and <B>stime</B>.
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>stat </B></TD><TD>STAT </TD><TD>
|
|
multi-character process state. See section
|
|
<B>PROCESS STATE CODES</B>
|
|
|
|
for the different values meaning. See also
|
|
<B>s</B> and<B> state</B>
|
|
|
|
if you just want the first character displayed.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>state </B></TD><TD>S </TD><TD>
|
|
see
|
|
<B>s</B>. (alias<B> s</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>suid </B></TD><TD>SUID </TD><TD>
|
|
saved user ID. (alias
|
|
<B>svuid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>supgid </B></TD><TD>SUPGID </TD><TD>
|
|
group ids of supplementary groups, if any. See
|
|
<B><A HREF="/cgi-bin/man/man2html?2+getgroups">getgroups</A></B>(2).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>supgrp </B></TD><TD>SUPGRP </TD><TD>
|
|
group names of supplementary groups, if any. See
|
|
<B><A HREF="/cgi-bin/man/man2html?2+getgroups">getgroups</A></B>(2).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>suser </B></TD><TD>SUSER </TD><TD>
|
|
saved user name. This will be the textual user ID, if it can be obtained and
|
|
the field width permits, or a decimal representation otherwise. (alias
|
|
<B>svuser</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>svgid </B></TD><TD>SVGID </TD><TD>
|
|
see
|
|
<B>sgid</B>.
|
|
|
|
(alias
|
|
<B>sgid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>svuid </B></TD><TD>SVUID </TD><TD>
|
|
see
|
|
<B>suid</B>.
|
|
|
|
(alias
|
|
<B>suid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>sz </B></TD><TD>SZ </TD><TD>
|
|
size in physical pages of the core image of the process. This includes text,
|
|
data, and stack space. Device mappings are currently excluded; this is
|
|
subject to change. See
|
|
<B>vsz</B> and<B> rss</B>.
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tgid </B></TD><TD>TGID </TD><TD>
|
|
a number representing the thread group to which a task belongs (alias
|
|
<B>pid</B>).
|
|
|
|
It is the process ID of the thread group leader.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>thcount </B></TD><TD>THCNT </TD><TD>
|
|
see
|
|
<B>nlwp</B>.
|
|
|
|
(alias
|
|
<B>nlwp</B>).
|
|
|
|
number of kernel threads owned by the process.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tid </B></TD><TD>TID </TD><TD>
|
|
the unique number representing a dispatchable entity (alias
|
|
<B>lwp</B>, <B>spid</B>).
|
|
|
|
This value may also appear as: a process ID (pid); a process group ID (pgrp);
|
|
a session ID for the session leader (sid); a thread group ID for the thread
|
|
group leader (tgid); and a tty process group ID for the process group leader
|
|
(tpgid).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>time </B></TD><TD>TIME </TD><TD>
|
|
cumulative CPU time, "[DD-]HH:MM:SS" format. (alias
|
|
<B>cputime</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>times </B></TD><TD>TIME </TD><TD>
|
|
cumulative CPU time in seconds (alias
|
|
<B>cputimes</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tname </B></TD><TD>TTY </TD><TD>
|
|
controlling tty (terminal). (alias
|
|
<B>tt</B>, <B>tty</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tpgid </B></TD><TD>TPGID </TD><TD>
|
|
ID of the foreground process group on the tty (terminal) that the process is
|
|
connected to, or -1 if the process is not connected to a tty.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>trs </B></TD><TD>TRS </TD><TD>
|
|
text resident set size,
|
|
the amount of physical memory devoted to executable code.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tt </B></TD><TD>TT </TD><TD>
|
|
controlling tty (terminal). (alias
|
|
<B>tname</B>, <B>tty</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>tty </B></TD><TD>TT </TD><TD>
|
|
controlling tty (terminal). (alias
|
|
<B>tname</B>, <B>tt</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ucmd </B></TD><TD>CMD </TD><TD>
|
|
see
|
|
<B>comm</B>.
|
|
|
|
(alias
|
|
<B>comm</B>, <B>ucomm</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>ucomm </B></TD><TD>COMMAND </TD><TD>
|
|
see
|
|
<B>comm</B>.
|
|
|
|
(alias
|
|
<B>comm</B>, <B>ucmd</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>uid </B></TD><TD>UID </TD><TD>
|
|
see
|
|
<B>euid</B>.
|
|
|
|
(alias
|
|
<B>euid</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>uname </B></TD><TD>USER </TD><TD>
|
|
see
|
|
<B>euser</B>.
|
|
|
|
(alias
|
|
<B>euser</B>, <B>user</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>unit </B></TD><TD>UNIT </TD><TD>
|
|
displays unit which a process belongs to,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>user </B></TD><TD>USER </TD><TD>
|
|
see
|
|
<B>euser</B>.
|
|
|
|
(alias
|
|
<B>euser</B>, <B>uname</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>userns </B></TD><TD>USERNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>utsns </B></TD><TD>UTSNS </TD><TD>
|
|
Unique inode number describing the namespace the process belongs to.
|
|
See <A HREF="/cgi-bin/man/man2html?7+namespaces">namespaces</A>(7).
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>uunit </B></TD><TD>UUNIT </TD><TD>
|
|
displays user unit which a process belongs to,
|
|
if systemd support has been included.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>vsize </B></TD><TD>VSZ </TD><TD>
|
|
see
|
|
<B>vsz</B>.
|
|
|
|
(alias
|
|
<B>vsz</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>vsz </B></TD><TD>VSZ </TD><TD>
|
|
virtual memory size of the process in KiB (1024-byte units). Device
|
|
mappings are currently excluded; this is subject to change. (alias
|
|
<B>vsize</B>).
|
|
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
<TR VALIGN=top><TD><B>wchan </B></TD><TD>WCHAN </TD><TD>
|
|
name of the kernel function in which the process is sleeping, a "-" if the
|
|
process is running, or a "*" if the process is multi-threaded and
|
|
<B>ps</B>
|
|
|
|
is not displaying threads.
|
|
<BR></TD></TR>
|
|
<TR VALIGN=top><TD><B> </B></TD><TD> </TD><TD><BR></TD></TR>
|
|
</TABLE>
|
|
|
|
|
|
<A NAME="lbAR"> </A>
|
|
<H2>ENVIRONMENT VARIABLES</H2>
|
|
|
|
The following environment variables could affect
|
|
<B>ps</B>:
|
|
|
|
<DL COMPACT>
|
|
<DT id="124"><B>COLUMNS</B>
|
|
|
|
<DD>
|
|
Override default display width.
|
|
<DT id="125"><B>LINES</B>
|
|
|
|
<DD>
|
|
Override default display height.
|
|
<DT id="126"><B>PS_PERSONALITY</B>
|
|
|
|
<DD>
|
|
Set to one of posix, old, linux, bsd, sun, digital... (see section
|
|
<B>PERSONALITY</B>
|
|
|
|
below).
|
|
<DT id="127"><B>CMD_ENV</B>
|
|
|
|
<DD>
|
|
Set to one of posix, old, linux, bsd, sun, digital... (see section
|
|
<B>PERSONALITY</B>
|
|
|
|
below).
|
|
<DT id="128"><B>I_WANT_A_BROKEN_PS</B>
|
|
|
|
<DD>
|
|
Force obsolete command line interpretation.
|
|
<DT id="129"><B>LC_TIME</B>
|
|
|
|
<DD>
|
|
Date format.
|
|
<DT id="130"><B>PS_COLORS</B>
|
|
|
|
<DD>
|
|
Not currently supported.
|
|
<DT id="131"><B>PS_FORMAT</B>
|
|
|
|
<DD>
|
|
Default output format override.
|
|
You may set this to a format string of the type used for the
|
|
<B>-o</B>
|
|
|
|
option.
|
|
The
|
|
<B>DefSysV</B>
|
|
|
|
and
|
|
<B>DefBSD</B>
|
|
|
|
values are particularly useful.
|
|
<DT id="132"><B>POSIXLY_CORRECT</B>
|
|
|
|
<DD>
|
|
Don't find excuses to ignore bad "features".
|
|
<DT id="133"><B>POSIX2</B>
|
|
|
|
<DD>
|
|
When set to "on", acts as
|
|
<B>POSIXLY_CORRECT</B>.
|
|
|
|
<DT id="134"><B>UNIX95</B>
|
|
|
|
<DD>
|
|
Don't find excuses to ignore bad "features".
|
|
<DT id="135"><B>_XPG</B>
|
|
|
|
<DD>
|
|
Cancel
|
|
<B>CMD_ENV</B>=<I>irix</I>
|
|
|
|
non-standard behavior.
|
|
</DL>
|
|
<P>
|
|
|
|
In general, it is a bad idea to set these variables. The one exception is
|
|
<B>CMD_ENV</B>
|
|
|
|
or
|
|
<B>PS_PERSONALITY</B>,
|
|
|
|
which could be set to Linux for normal systems. Without that setting,
|
|
<B>ps</B>
|
|
|
|
follows the useless and bad parts of the Unix98 standard.
|
|
<A NAME="lbAS"> </A>
|
|
<H2>PERSONALITY</H2>
|
|
|
|
<TABLE>
|
|
<TR VALIGN=top><TD>390</TD><TD>like the OS/390 OpenEdition <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>aix</TD><TD>like AIX <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>bsd</TD><TD>like FreeBSD <B>ps</B> (totally non-standard)<BR></TD></TR>
|
|
<TR VALIGN=top><TD>compaq</TD><TD>like Digital Unix <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>debian</TD><TD>like the old Debian <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>digital</TD><TD>like Tru64 (was Digital Unix, was OSF/1) <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>gnu</TD><TD>like the old Debian <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>hp</TD><TD>like HP-UX <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>hpux</TD><TD>like HP-UX <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>irix</TD><TD>like Irix <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>linux</TD><TD>***** <B>recommended</B> *****<BR></TD></TR>
|
|
<TR VALIGN=top><TD>old</TD><TD>like the original Linux <B>ps</B> (totally non-standard)<BR></TD></TR>
|
|
<TR VALIGN=top><TD>os390</TD><TD>like OS/390 Open Edition <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>posix</TD><TD>standard<BR></TD></TR>
|
|
<TR VALIGN=top><TD>s390</TD><TD>like OS/390 Open Edition <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>sco</TD><TD>like SCO <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>sgi</TD><TD>like Irix <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>solaris2</TD><TD>like Solaris 2+ (SunOS 5) <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>sunos4</TD><TD>like SunOS 4 (Solaris 1) <B>ps</B> (totally non-standard)<BR></TD></TR>
|
|
<TR VALIGN=top><TD>svr4</TD><TD>standard<BR></TD></TR>
|
|
<TR VALIGN=top><TD>sysv</TD><TD>standard<BR></TD></TR>
|
|
<TR VALIGN=top><TD>tru64</TD><TD>like Tru64 (was Digital Unix, was OSF/1) <B>ps</B><BR></TD></TR>
|
|
<TR VALIGN=top><TD>unix</TD><TD>standard<BR></TD></TR>
|
|
<TR VALIGN=top><TD>unix95</TD><TD>standard<BR></TD></TR>
|
|
<TR VALIGN=top><TD>unix98</TD><TD>standard<BR></TD></TR>
|
|
</TABLE>
|
|
|
|
<A NAME="lbAT"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pgrep">pgrep</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+pstree">pstree</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+top">top</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+proc">proc</A></B>(5).
|
|
|
|
<A NAME="lbAU"> </A>
|
|
<H2>STANDARDS</H2>
|
|
|
|
This
|
|
<B>ps</B>
|
|
|
|
conforms to:
|
|
<P>
|
|
|
|
|
|
<DL COMPACT>
|
|
<DT id="136">1<DD>
|
|
Version 2 of the Single Unix Specification
|
|
<DT id="137">2<DD>
|
|
The Open Group Technical Standard Base Specifications, Issue 6
|
|
<DT id="138">3<DD>
|
|
IEEE Std 1003.1, 2004 Edition
|
|
<DT id="139">4<DD>
|
|
X/Open System Interfaces Extension [UP XSI]
|
|
<DT id="140">5<DD>
|
|
ISO/IEC 9945:2003
|
|
|
|
</DL>
|
|
<A NAME="lbAV"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<B>ps</B>
|
|
|
|
was originally written by
|
|
|
|
Branko Lankester
|
|
|
|
|
|
Michael K. Johnson
|
|
|
|
re-wrote it significantly to use the proc filesystem, changing a few things
|
|
in the process.
|
|
|
|
Michael Shields
|
|
|
|
added the pid-list feature.
|
|
|
|
Charles Blake
|
|
|
|
added multi-level sorting, the dirent-style library, the device
|
|
name-to-number mmaped database, the approximate binary search directly on
|
|
System.map, and many code and documentation cleanups. David Mossberger-Tang
|
|
wrote the generic BFD support for psupdate.
|
|
|
|
Albert Cahalan
|
|
|
|
rewrote ps for full Unix98 and BSD support, along with some ugly hacks for
|
|
obsolete and foreign syntax.
|
|
<P>
|
|
|
|
Please send bug reports to
|
|
|
|
|
|
No subscription is required or suggested.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="141"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="142"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="143"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="144"><A HREF="#lbAE">EXAMPLES</A><DD>
|
|
<DT id="145"><A HREF="#lbAF">SIMPLE PROCESS SELECTION</A><DD>
|
|
<DT id="146"><A HREF="#lbAG">PROCESS SELECTION BY LIST</A><DD>
|
|
<DT id="147"><A HREF="#lbAH">OUTPUT FORMAT CONTROL</A><DD>
|
|
<DT id="148"><A HREF="#lbAI">OUTPUT MODIFIERS</A><DD>
|
|
<DT id="149"><A HREF="#lbAJ">THREAD DISPLAY</A><DD>
|
|
<DT id="150"><A HREF="#lbAK">OTHER INFORMATION</A><DD>
|
|
<DT id="151"><A HREF="#lbAL">NOTES</A><DD>
|
|
<DT id="152"><A HREF="#lbAM">PROCESS FLAGS</A><DD>
|
|
<DT id="153"><A HREF="#lbAN">PROCESS STATE CODES</A><DD>
|
|
<DT id="154"><A HREF="#lbAO">OBSOLETE SORT KEYS</A><DD>
|
|
<DT id="155"><A HREF="#lbAP">AIX FORMAT DESCRIPTORS</A><DD>
|
|
<DT id="156"><A HREF="#lbAQ">STANDARD FORMAT SPECIFIERS</A><DD>
|
|
<DT id="157"><A HREF="#lbAR">ENVIRONMENT VARIABLES</A><DD>
|
|
<DT id="158"><A HREF="#lbAS">PERSONALITY</A><DD>
|
|
<DT id="159"><A HREF="#lbAT">SEE ALSO</A><DD>
|
|
<DT id="160"><A HREF="#lbAU">STANDARDS</A><DD>
|
|
<DT id="161"><A HREF="#lbAV">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:25 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|