2004-08-10 10:00:27 +05:30
|
|
|
'\" t
|
|
|
|
.\" (The preceding line is a note to broken versions of man to tell
|
2002-02-02 04:17:29 +05:30
|
|
|
.\" Man page for ps.
|
|
|
|
.\" Quick hack conversion by Albert Cahalan, 1998.
|
|
|
|
.\" Licensed under version 2 of the Gnu General Public License.
|
|
|
|
.\"
|
2022-01-04 04:30:00 +05:30
|
|
|
.TH PS "1" "January 2022" "procps-ng" "User Commands"
|
2002-02-02 04:17:29 +05:30
|
|
|
.\"
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" To render this page:
|
2004-12-02 23:23:33 +05:30
|
|
|
.\" groff -t -b -man -X -P-resolution -P100 -Tps ps.1 &
|
|
|
|
.\" groff -t -b -man -X -TX100 ps.1 &
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" tbl ps.1 | troff -Ww -man -z
|
|
|
|
.\" groff -t -man -Tps ps.1 | ps2pdf - - > ps.pdf
|
|
|
|
.\"
|
2011-12-18 06:33:28 +05:30
|
|
|
.\" Ragged-right text.
|
2002-02-02 04:17:29 +05:30
|
|
|
.na
|
2011-12-18 06:33:28 +05:30
|
|
|
.\" Disable hyphenation.
|
2002-02-02 04:17:29 +05:30
|
|
|
.nh
|
2004-08-10 10:00:27 +05:30
|
|
|
.\"
|
|
|
|
.\" ColSize is used for the format spec table.
|
|
|
|
.\" It's the left margin, minus the right, minus
|
|
|
|
.\" the space needed for the 1st two columns.
|
|
|
|
.\" Making it messy: inches, ens, points, scaled points...
|
|
|
|
.\"
|
2011-02-24 18:53:31 +05:30
|
|
|
.nr ColSize ((\n[.l] - \n[.i]) / 1n - 29)
|
2004-08-10 10:00:27 +05:30
|
|
|
.\"
|
2004-12-02 23:07:58 +05:30
|
|
|
.SH NAME
|
|
|
|
ps \- report a snapshot of the current processes.
|
2004-08-10 10:00:27 +05:30
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBps\fR [\fIoptions\fR]
|
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B ps
|
2011-12-18 06:33:28 +05:30
|
|
|
displays information about a selection of the active processes. If you want
|
|
|
|
a repetitive update of the selection and the displayed information, use
|
2020-06-04 17:55:26 +05:30
|
|
|
.B top
|
2011-12-18 06:33:28 +05:30
|
|
|
instead.
|
2004-08-10 10:00:27 +05:30
|
|
|
.P
|
2011-12-18 06:33:28 +05:30
|
|
|
This version of
|
|
|
|
.B ps
|
|
|
|
accepts several kinds of options:
|
|
|
|
.IP
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD 0
|
|
|
|
.IP 1 4
|
2005-10-30 08:32:48 +05:30
|
|
|
UNIX options, which may be grouped and must be preceded by a dash.
|
2004-08-10 10:00:27 +05:30
|
|
|
.IP 2 4
|
|
|
|
BSD options, which may be grouped and must not be used with a dash.
|
|
|
|
.IP 3 4
|
2005-10-30 08:32:48 +05:30
|
|
|
GNU long options, which are preceded by two dashes.
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
Options of different types may be freely mixed, but conflicts can appear.
|
2011-12-18 06:33:28 +05:30
|
|
|
There are some synonymous options, which are functionally identical, due to
|
|
|
|
the many standards and
|
|
|
|
.B ps
|
|
|
|
implementations that this
|
|
|
|
.B ps
|
|
|
|
is compatible with.
|
2004-08-10 10:00:27 +05:30
|
|
|
.P
|
2020-06-04 17:55:26 +05:30
|
|
|
Note that \fBps \-aux\fR is distinct from \fBps\ aux\fR. The POSIX and
|
|
|
|
UNIX standards require that \fBps\ \-aux\fR print all processes owned by a
|
|
|
|
user named \fIx\fR, as well as printing all processes that would be selected by
|
2011-12-18 06:33:28 +05:30
|
|
|
the
|
|
|
|
.B \-a
|
2020-06-04 17:55:26 +05:30
|
|
|
option. If the user named \fIx\fR does not exist, this
|
2011-12-18 06:33:28 +05:30
|
|
|
.B ps
|
2020-06-04 17:55:26 +05:30
|
|
|
may interpret the command as \fBps\ aux\fR instead and print a warning.
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-18 07:52:13 +05:30
|
|
|
.P
|
2011-12-18 06:33:28 +05:30
|
|
|
By default,
|
|
|
|
.B ps
|
|
|
|
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.
|
2004-08-18 07:52:13 +05:30
|
|
|
.P
|
2005-10-30 08:22:46 +05:30
|
|
|
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
|
2011-12-18 06:33:28 +05:30
|
|
|
executable name. You can override this with the
|
|
|
|
.B PS_FORMAT
|
2004-08-18 07:52:13 +05:30
|
|
|
environment variable. The use of BSD\-style options will also change the
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
will be considered identical to \fBZ\fR and so on.
|
2004-08-18 07:52:13 +05:30
|
|
|
.P
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.SH "EXAMPLES"
|
|
|
|
.TP 3
|
|
|
|
To see every process on the system using standard syntax:
|
|
|
|
.B ps\ \-e
|
|
|
|
.br
|
|
|
|
.B ps\ \-ef
|
|
|
|
.br
|
|
|
|
.B ps\ \-eF
|
|
|
|
.br
|
|
|
|
.B ps\ \-ely
|
|
|
|
.TP
|
|
|
|
To see every process on the system using BSD syntax:
|
|
|
|
.B ps\ ax
|
|
|
|
.br
|
|
|
|
.B ps\ axu
|
|
|
|
.TP
|
|
|
|
To print a process tree:
|
|
|
|
.B ps\ -ejH
|
|
|
|
.br
|
|
|
|
.B ps\ axjf
|
|
|
|
.TP
|
|
|
|
To get info about threads:
|
|
|
|
.B ps\ -eLf
|
|
|
|
.br
|
|
|
|
.B ps\ axms
|
|
|
|
.TP
|
|
|
|
To get security info:
|
|
|
|
.B ps\ -eo euser,ruser,suser,fuser,f,comm,label
|
|
|
|
.br
|
|
|
|
.B ps\ axZ
|
|
|
|
.br
|
|
|
|
.B ps\ -eM
|
|
|
|
.TP
|
2004-08-18 07:52:13 +05:30
|
|
|
To see every process running as root (real\ &\ effective\ ID) in user format:
|
|
|
|
.B ps\ \-U\ root\ \-u\ root\ u
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
To see every process with a user\-defined format:
|
|
|
|
.B ps\ \-eo\ pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm
|
|
|
|
.br
|
|
|
|
.B ps\ axo\ stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm
|
|
|
|
.br
|
2011-08-17 16:31:35 +05:30
|
|
|
.B ps\ \-Ao\ pid,tt,user,fname,tmout,f,wchan
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
Print only the process IDs of syslogd:
|
|
|
|
.B ps\ \-C\ syslogd\ \-o\ pid=
|
|
|
|
.TP
|
|
|
|
Print only the name of PID 42:
|
2014-07-11 00:44:02 +05:30
|
|
|
.B ps\ \-q\ 42\ \-o\ comm=
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.SH "SIMPLE PROCESS SELECTION"
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.BR a
|
|
|
|
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
|
|
|
|
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
|
|
|
|
to list all processes with a terminal (tty), or to list all processes when
|
|
|
|
used together with the
|
|
|
|
.B x
|
|
|
|
option.
|
|
|
|
.TP
|
|
|
|
.B \-A
|
|
|
|
Select all processes. Identical to
|
|
|
|
.BR \-e .
|
|
|
|
.TP
|
|
|
|
.B \-a
|
|
|
|
Select all processes except both session leaders (see
|
|
|
|
.IR getsid (2))
|
|
|
|
and processes not associated with a terminal.
|
|
|
|
.TP
|
|
|
|
.B \-d
|
2004-08-10 10:00:27 +05:30
|
|
|
Select all processes except session leaders.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-deselect
|
2011-02-24 18:53:31 +05:30
|
|
|
Select all processes except those that fulfill the specified conditions
|
2011-12-18 06:33:28 +05:30
|
|
|
(negates the selection). Identical to
|
|
|
|
.BR \-N .
|
|
|
|
.TP
|
|
|
|
.B \-e
|
|
|
|
Select all processes. Identical to
|
|
|
|
.BR \-A .
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" Current "g" behavior: add in the session leaders, which would
|
|
|
|
.\" be excluded in the sunos4 personality. Supposed "g" behavior:
|
|
|
|
.\" add in the group leaders -- at least according to the SunOS 4
|
|
|
|
.\" man page on the FreeBSD site. Uh oh. I think I had tested SunOS
|
|
|
|
.\" though, so maybe the code is correct.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B g
|
2004-08-10 10:00:27 +05:30
|
|
|
Really all, even session leaders. This flag is obsolete and may be
|
2011-12-18 06:33:28 +05:30
|
|
|
discontinued in a future release. It is normally implied by the
|
|
|
|
.B a
|
|
|
|
flag, and is only useful when operating in the sunos4 personality.
|
|
|
|
.TP
|
|
|
|
.B \-N
|
2011-02-24 18:53:31 +05:30
|
|
|
Select all processes except those that fulfill the specified conditions
|
2011-12-18 06:33:28 +05:30
|
|
|
(negates the selection). Identical to
|
|
|
|
.BR \-\-deselect .
|
|
|
|
.TP
|
|
|
|
.B T
|
2011-02-24 18:53:31 +05:30
|
|
|
Select all processes associated with this terminal. Identical to the
|
2011-12-18 06:33:28 +05:30
|
|
|
.B t
|
|
|
|
option without any argument.
|
|
|
|
.TP
|
|
|
|
.B r
|
2004-08-10 10:00:27 +05:30
|
|
|
Restrict the selection to only running processes.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B x
|
|
|
|
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
|
|
|
|
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
|
|
|
|
to list all processes owned by you (same EUID as
|
|
|
|
.BR ps ),
|
|
|
|
or to list all processes when used together with the
|
|
|
|
.B a
|
|
|
|
option.
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH "PROCESS SELECTION BY LIST"
|
2011-12-18 06:33:28 +05:30
|
|
|
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:
|
|
|
|
\fBps\ \-p\ "1\ 2"\ \-p\ 3,4\fR
|
|
|
|
.TP
|
|
|
|
.RI \- 123
|
2011-02-24 18:53:31 +05:30
|
|
|
Identical to \fB\-\-pid\ \fI123\fR.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.I 123
|
|
|
|
Identical to \fB\-\-pid\ \fI123\fR.
|
|
|
|
.TP
|
|
|
|
.BI \-C \ cmdlist
|
|
|
|
Select by command name. This selects the processes whose executable name is
|
|
|
|
given in
|
|
|
|
.IR cmdlist .
|
2018-08-08 15:43:58 +05:30
|
|
|
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.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.BI \-G \ grplist
|
|
|
|
Select by real group ID (RGID) or name. This selects the processes whose
|
|
|
|
real group name or ID is in the
|
|
|
|
.I grplist
|
|
|
|
list. The real group ID identifies the group of the user who created the
|
|
|
|
process, see
|
|
|
|
.IR getgid (2).
|
|
|
|
.TP
|
|
|
|
.BI \-g \ grplist
|
|
|
|
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
|
2014-05-24 10:30:00 +05:30
|
|
|
will select by session when the list is completely numeric (as sessions
|
2011-12-18 06:33:28 +05:30
|
|
|
are). Group ID numbers will work only when some group names are also
|
|
|
|
specified. See the
|
|
|
|
.B \-s
|
|
|
|
and
|
|
|
|
.B \-\-group
|
|
|
|
options.
|
|
|
|
.TP
|
|
|
|
.BI \-\-Group \ grplist
|
|
|
|
Select by real group ID (RGID) or name. Identical to
|
|
|
|
.BR \-G .
|
|
|
|
.TP
|
|
|
|
.BI \-\-group \ grplist
|
|
|
|
Select by effective group ID (EGID) or name. This selects the processes
|
|
|
|
whose effective group name or ID is in
|
2013-01-23 17:15:59 +05:30
|
|
|
.IR grplist .
|
2011-12-18 06:33:28 +05:30
|
|
|
The effective group ID describes the group whose file access permissions are
|
|
|
|
used by the process (see
|
|
|
|
.IR getegid (2)).
|
|
|
|
The
|
|
|
|
.B \-g
|
|
|
|
option is often an alternative to
|
|
|
|
.BR \-\-group .
|
|
|
|
.TP
|
|
|
|
.BI p \ pidlist
|
|
|
|
Select by process ID. Identical to
|
|
|
|
.B \-p
|
|
|
|
and
|
|
|
|
.BR \-\-pid .
|
|
|
|
.TP
|
|
|
|
.BI \-p \ pidlist
|
|
|
|
Select by PID. This selects the processes whose process ID numbers appear in
|
|
|
|
.IR pidlist .
|
|
|
|
Identical to
|
|
|
|
.B p
|
|
|
|
and
|
|
|
|
.BR \-\-pid .
|
|
|
|
.TP
|
|
|
|
.BI \-\-pid \ pidlist
|
|
|
|
Select by process\ ID. Identical to
|
|
|
|
.B \-p
|
|
|
|
and
|
|
|
|
.BR p .
|
|
|
|
.TP
|
|
|
|
.BI \-\-ppid \ pidlist
|
|
|
|
Select by parent process ID. This selects the processes with a parent
|
|
|
|
process\ ID in
|
|
|
|
.IR pidlist .
|
|
|
|
That is, it selects processes that are children of those listed in
|
|
|
|
.IR pidlist .
|
|
|
|
.TP
|
2014-07-11 00:44:02 +05:30
|
|
|
.BI q \ pidlist
|
|
|
|
Select by process ID (quick mode). Identical to
|
|
|
|
.B \-q
|
|
|
|
and
|
|
|
|
.BR \-\-quick\-pid .
|
|
|
|
.TP
|
|
|
|
.BI \-q \ pidlist
|
|
|
|
Select by PID (quick mode). This selects the processes whose process ID numbers appear in
|
|
|
|
.IR pidlist .
|
|
|
|
With this option \fBps\fR reads the necessary info only
|
|
|
|
for the pids listed in the \fIpidlist\fR 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
|
|
|
|
and
|
|
|
|
.BR \-\-quick\-pid .
|
|
|
|
.TP
|
|
|
|
.BI \-\-quick\-pid \ pidlist
|
|
|
|
Select by process\ ID (quick mode). Identical to
|
|
|
|
.B \-q
|
|
|
|
and
|
|
|
|
.BR q .
|
|
|
|
.TP
|
2011-12-18 06:33:28 +05:30
|
|
|
.BI \-s \ sesslist
|
|
|
|
Select by session ID. This selects the processes with a session ID specified
|
|
|
|
in
|
|
|
|
.IR sesslist .
|
|
|
|
.TP
|
|
|
|
.BI \-\-sid \ sesslist
|
|
|
|
Select by session\ ID. Identical to
|
|
|
|
.BR \-s .
|
|
|
|
.TP
|
|
|
|
.BI t \ ttylist
|
|
|
|
Select by tty. Nearly identical to
|
|
|
|
.B \-t
|
|
|
|
and
|
|
|
|
.BR \-\-tty ,
|
|
|
|
but can also
|
|
|
|
be used with an empty
|
|
|
|
.I ttylist
|
|
|
|
to indicate the terminal associated with
|
|
|
|
.BR ps .
|
|
|
|
Using the
|
|
|
|
.B T
|
|
|
|
option is considered cleaner than using
|
|
|
|
.B t
|
|
|
|
with an empty
|
|
|
|
.IR ttylist .
|
|
|
|
.TP
|
|
|
|
.BI \-t \ ttylist
|
|
|
|
Select by tty. This selects the processes associated with the terminals
|
|
|
|
given in
|
|
|
|
.IR ttylist .
|
2004-08-10 10:00:27 +05:30
|
|
|
Terminals (ttys, or screens for text output) can be specified in several
|
2011-12-18 06:33:28 +05:30
|
|
|
forms: /dev/ttyS1, ttyS1, S1. A plain "\-" may be used to select processes
|
|
|
|
not attached to any terminal.
|
|
|
|
.TP
|
|
|
|
.BI \-\-tty \ ttylist
|
|
|
|
Select by terminal. Identical to
|
|
|
|
.B \-t
|
|
|
|
and
|
|
|
|
.BR t .
|
|
|
|
.TP
|
|
|
|
.BI U \ userlist
|
|
|
|
Select by effective user ID (EUID) or name. This selects the processes whose
|
|
|
|
effective user name or ID is in
|
|
|
|
.IR userlist .
|
|
|
|
The effective user ID describes the user whose file access permissions are
|
|
|
|
used by the process (see
|
|
|
|
.IR geteuid (2)).
|
|
|
|
Identical to
|
|
|
|
.B \-u
|
|
|
|
and
|
|
|
|
.BR \-\-user .
|
|
|
|
.TP
|
|
|
|
.BI \-U \ userlist
|
|
|
|
Select by real user ID (RUID) or name. It selects the processes whose real
|
|
|
|
user name or ID is in the
|
|
|
|
.I userlist
|
|
|
|
list. The real user ID identifies the user who created the process, see
|
|
|
|
.IR getuid (2).
|
|
|
|
.TP
|
|
|
|
.BI \-u \ userlist
|
|
|
|
Select by effective user ID (EUID) or name. This selects the processes whose
|
|
|
|
effective user name or ID is in
|
|
|
|
.IR userlist .
|
|
|
|
|
|
|
|
The effective user ID describes the user whose file
|
|
|
|
access permissions are used by the process (see
|
|
|
|
.IR geteuid (2)).
|
|
|
|
Identical to
|
|
|
|
.B U
|
|
|
|
and
|
|
|
|
.BR \-\-user .
|
|
|
|
.TP
|
|
|
|
.BI \-\-User \ userlist
|
|
|
|
Select by real user ID (RUID) or name. Identical to
|
|
|
|
.BR \-U .
|
|
|
|
.TP
|
|
|
|
.BI \-\-user \ userlist
|
|
|
|
Select by effective user ID (EUID) or name. Identical to
|
|
|
|
.B \-u
|
|
|
|
and
|
|
|
|
.BR U .
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH "OUTPUT FORMAT CONTROL"
|
2011-12-18 06:33:28 +05:30
|
|
|
These options are used to choose the information displayed by
|
|
|
|
.BR ps .
|
2004-08-10 10:00:27 +05:30
|
|
|
The output may differ by personality.
|
|
|
|
.PP
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-c
|
|
|
|
Show different scheduler information for the
|
|
|
|
.B \-l
|
|
|
|
option.
|
|
|
|
.TP
|
|
|
|
.B \-\-context
|
2012-09-27 17:16:46 +05:30
|
|
|
Display security context format (for SELinux).
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-f
|
|
|
|
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
|
|
|
|
.BR \-L ,
|
|
|
|
the NLWP (number of threads) and LWP (thread ID) columns will be added. See
|
|
|
|
the
|
|
|
|
.B c
|
|
|
|
option, the format keyword
|
|
|
|
.BR args ,
|
|
|
|
and the format keyword
|
|
|
|
.BR comm .
|
|
|
|
.TP
|
|
|
|
.B \-F
|
|
|
|
Extra full format. See the
|
|
|
|
.B \-f
|
|
|
|
option, which
|
|
|
|
.B \-F
|
|
|
|
implies.
|
|
|
|
.TP
|
|
|
|
.BI \-\-format \ format
|
|
|
|
user\-defined format. Identical to
|
|
|
|
.B \-o
|
|
|
|
and
|
|
|
|
.BR o .
|
|
|
|
.TP
|
|
|
|
.B j
|
2004-08-10 10:00:27 +05:30
|
|
|
BSD job control format.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-j
|
|
|
|
Jobs format.
|
|
|
|
.TP
|
|
|
|
.B l
|
2011-02-24 18:53:31 +05:30
|
|
|
Display BSD long format.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-l
|
|
|
|
Long format. The
|
|
|
|
.B \-y
|
|
|
|
option is often useful with this.
|
|
|
|
.TP
|
|
|
|
.B \-M
|
|
|
|
Add a column of security data. Identical to
|
|
|
|
.B Z
|
2012-09-27 17:16:46 +05:30
|
|
|
(for SELinux).
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.BI O \ format
|
|
|
|
is preloaded
|
|
|
|
.B o
|
|
|
|
(overloaded). The BSD
|
|
|
|
.B O
|
|
|
|
option can act like
|
|
|
|
.B \-O
|
|
|
|
(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
|
|
|
|
or
|
|
|
|
.BR \-\-sort ).
|
|
|
|
When used as a formatting option, it is identical to
|
|
|
|
.BR \-O ,
|
|
|
|
with the BSD personality.
|
|
|
|
.TP
|
|
|
|
.BI \-O \ format
|
|
|
|
Like
|
|
|
|
.BR \-o ,
|
|
|
|
but preloaded with some default columns. Identical to
|
|
|
|
\fB\-o\ pid,\:\fIformat\fB,\:state,\:tname,\:time,\:command\fR or
|
|
|
|
\fB\-o\ pid,\:\fIformat\fB,\:tname,\:time,\:cmd\fR,
|
|
|
|
see
|
|
|
|
.B \-o
|
|
|
|
below.
|
|
|
|
.TP
|
|
|
|
.BI o \ format
|
|
|
|
Specify user\-defined format. Identical to
|
|
|
|
.B \-o
|
|
|
|
and
|
|
|
|
.BR \-\-format .
|
|
|
|
.TP
|
|
|
|
.BI \-o \ format
|
2011-02-24 18:53:31 +05:30
|
|
|
User\-defined format.
|
2011-12-18 06:33:28 +05:30
|
|
|
.I format
|
|
|
|
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
|
|
|
|
section below. Headers may be renamed
|
|
|
|
.RB ( "ps \-o pid,\:ruser=RealUser \-o comm=Command" )
|
|
|
|
as desired.
|
|
|
|
If all column headers are empty
|
|
|
|
.RB ( "ps \-o pid= \-o comm=" )
|
|
|
|
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
|
|
|
|
.RB ( "ps \-o pid,\:wchan=\:WIDE\-\:WCHAN\-\:COLUMN \-o comm" ).
|
|
|
|
Explicit width
|
|
|
|
control
|
|
|
|
.RB ( "ps opid,\:wchan:42,\:cmd" )
|
|
|
|
is offered too. The behavior of
|
|
|
|
.B ps -o pid=X,\:comm=Y
|
|
|
|
varies with personality; output may be one column named "X,\:comm=Y" or two
|
|
|
|
columns named "X" and "Y". Use multiple
|
|
|
|
.B \-o
|
|
|
|
options when in doubt. Use the
|
|
|
|
.B PS_FORMAT
|
|
|
|
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.
|
|
|
|
.TP
|
|
|
|
.B s
|
|
|
|
Display signal format.
|
|
|
|
.TP
|
|
|
|
.B u
|
|
|
|
Display user\-oriented format.
|
|
|
|
.TP
|
|
|
|
.B v
|
|
|
|
Display virtual memory format.
|
|
|
|
.TP
|
|
|
|
.B X
|
2011-02-24 18:53:31 +05:30
|
|
|
Register format.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-y
|
|
|
|
Do not show flags; show rss in place of addr. This option can only be used
|
|
|
|
with
|
|
|
|
.BR \-l .
|
|
|
|
.TP
|
|
|
|
.B Z
|
|
|
|
Add a column of security data. Identical to
|
|
|
|
.B \-M
|
2012-09-27 17:16:46 +05:30
|
|
|
(for SELinux).
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH "OUTPUT MODIFIERS"
|
|
|
|
.\" .TP
|
|
|
|
.\" .B C
|
|
|
|
.\" use raw CPU time for %CPU instead of decaying average
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B c
|
|
|
|
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
|
|
|
|
format keyword into the
|
|
|
|
.B comm
|
|
|
|
format keyword; it is useful with the
|
|
|
|
.B \-f
|
|
|
|
format option and with the various BSD\-style format options, which all
|
|
|
|
normally display the command arguments. See the
|
|
|
|
.B \-f
|
|
|
|
option, the format
|
|
|
|
keyword
|
|
|
|
.BR args ,
|
|
|
|
and the format keyword
|
|
|
|
.BR comm .
|
|
|
|
.TP
|
|
|
|
.BI \-\-cols \ n
|
|
|
|
Set screen width.
|
|
|
|
.TP
|
|
|
|
.BI \-\-columns \ n
|
|
|
|
Set screen width.
|
|
|
|
.TP
|
|
|
|
.B \-\-cumulative
|
|
|
|
Include some dead child process data (as a sum with the parent).
|
|
|
|
.TP
|
|
|
|
.B e
|
2004-08-10 10:00:27 +05:30
|
|
|
Show the environment after the command.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B f
|
2011-02-24 18:53:31 +05:30
|
|
|
ASCII art process hierarchy (forest).
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-forest
|
2011-02-24 18:53:31 +05:30
|
|
|
ASCII art process tree.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B h
|
|
|
|
No header. (or, one header per screen in the BSD personality). The
|
|
|
|
.B h
|
|
|
|
option is problematic. Standard BSD
|
|
|
|
.B ps
|
|
|
|
uses this option to print a header on each page of output, but older Linux
|
|
|
|
.B ps
|
|
|
|
uses this option to totally disable the header. This version of
|
|
|
|
.B ps
|
|
|
|
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
|
|
|
|
and
|
|
|
|
.B \-\-no\-headers
|
|
|
|
to enable printing headers each page or disable headers entirely,
|
|
|
|
respectively.
|
|
|
|
.TP
|
|
|
|
.B \-H
|
2011-02-24 18:53:31 +05:30
|
|
|
Show process hierarchy (forest).
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-headers
|
2011-02-24 18:53:31 +05:30
|
|
|
Repeat header lines, one per page of output.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.BI k \ spec
|
|
|
|
Specify sorting order. Sorting syntax is
|
2011-02-24 18:53:31 +05:30
|
|
|
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]].
|
2011-12-18 06:33:28 +05:30
|
|
|
Choose a multi\-letter key from the
|
|
|
|
.B STANDARD FORMAT SPECIFIERS
|
|
|
|
section. The "+" is optional since default direction is increasing
|
|
|
|
numerical or lexicographic order. Identical to
|
|
|
|
.BR \-\-sort .
|
|
|
|
.RS 8
|
|
|
|
.IP
|
|
|
|
Examples:
|
2004-08-10 10:00:27 +05:30
|
|
|
.br
|
2011-12-18 06:33:28 +05:30
|
|
|
.B ps jaxkuid,\-ppid,+pid
|
2004-08-10 10:00:27 +05:30
|
|
|
.br
|
2011-12-18 06:33:28 +05:30
|
|
|
.B ps axk comm o comm,args
|
2004-08-10 10:00:27 +05:30
|
|
|
.br
|
2011-12-18 06:33:28 +05:30
|
|
|
.B ps kstart_time \-ef
|
|
|
|
.RE
|
|
|
|
.TP
|
|
|
|
.BI \-\-lines \ n
|
2011-02-24 18:53:31 +05:30
|
|
|
Set screen height.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B n
|
2011-02-24 18:53:31 +05:30
|
|
|
Numeric output for WCHAN and USER (including all types of UID and GID).
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-no\-headers
|
|
|
|
Print no header line at all.
|
|
|
|
.B \-\-no\-heading
|
|
|
|
is an alias for this option.
|
|
|
|
.TP
|
|
|
|
.BI O \ order
|
2011-02-24 18:53:31 +05:30
|
|
|
Sorting order (overloaded).
|
2011-12-18 06:33:28 +05:30
|
|
|
The BSD
|
|
|
|
.B O
|
|
|
|
option can act like
|
|
|
|
.B \-O
|
|
|
|
(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
|
|
|
|
or
|
|
|
|
.BR \-\-sort ).
|
|
|
|
.IP
|
|
|
|
For sorting, obsolete BSD
|
|
|
|
.B O
|
|
|
|
option syntax is
|
2011-02-24 18:53:31 +05:30
|
|
|
\fBO\fR[\fB+\fR|\fB\-\fR]\fIk1\fR[,[\fB+\fR|\fB\-\fR]\fIk2\fR[,...]].
|
|
|
|
It orders the processes listing according to the multilevel sort specified by
|
2011-12-18 06:33:28 +05:30
|
|
|
the sequence of one\-letter short keys
|
|
|
|
.IR k1 , k2 ", ..."
|
|
|
|
described in the
|
|
|
|
.B OBSOLETE SORT KEYS
|
|
|
|
section below. The\ "+" is currently optional, merely re\-iterating the
|
|
|
|
default direction on a key, but may help to distinguish an
|
|
|
|
.B O
|
|
|
|
sort from an
|
|
|
|
.B O
|
|
|
|
format. The "\-" reverses direction only on the key it precedes.
|
|
|
|
.TP
|
|
|
|
.BI \-\-rows \ n
|
2011-02-24 18:53:31 +05:30
|
|
|
Set screen height.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B S
|
|
|
|
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.
|
|
|
|
.TP
|
|
|
|
.BI \-\-sort \ spec
|
|
|
|
Specify sorting order. Sorting syntax is
|
|
|
|
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]]. Choose a
|
|
|
|
multi\-letter key from the
|
|
|
|
.B STANDARD FORMAT SPECIFIERS
|
|
|
|
section. The "+" is optional since default direction is increasing numerical
|
|
|
|
or lexicographic order. Identical to
|
|
|
|
.BR k .
|
|
|
|
For example:
|
|
|
|
.B ps jax \-\-sort=\:uid,\:\-ppid,\:+pid
|
|
|
|
.TP
|
|
|
|
.B w
|
|
|
|
Wide output. Use this option twice for unlimited width.
|
|
|
|
.TP
|
|
|
|
.B \-w
|
|
|
|
Wide output. Use this option twice for unlimited width.
|
|
|
|
.TP
|
|
|
|
.BI \-\-width \ n
|
|
|
|
Set screen width.
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH "THREAD DISPLAY"
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B H
|
2011-02-24 18:53:31 +05:30
|
|
|
Show threads as if they were processes.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-L
|
2011-02-24 18:53:31 +05:30
|
|
|
Show threads, possibly with LWP and NLWP columns.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B m
|
2011-02-24 18:53:31 +05:30
|
|
|
Show threads after processes.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-m
|
2011-02-24 18:53:31 +05:30
|
|
|
Show threads after processes.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-T
|
2011-02-24 18:53:31 +05:30
|
|
|
Show threads, possibly with SPID column.
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH "OTHER INFORMATION"
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.BI \-\-help \ section
|
2020-06-04 17:55:26 +05:30
|
|
|
Print a help message. The \fIsection\fR argument can be one of
|
|
|
|
.IR s imple,
|
|
|
|
.IR l ist,
|
|
|
|
.IR o utput,
|
|
|
|
.IR t hreads,
|
|
|
|
.IR m "isc, or"
|
|
|
|
.IR a ll.
|
|
|
|
The argument can be shortened to one of the underlined letters as in:
|
|
|
|
s\^|\^l\^|\^o\^|\^t\^|\^m\^|\^a.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-info
|
2011-02-24 18:53:31 +05:30
|
|
|
Print debugging info.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B L
|
2004-08-10 10:00:27 +05:30
|
|
|
List all format specifiers.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B V
|
2011-06-04 23:10:29 +05:30
|
|
|
Print the procps-ng version.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-V
|
2011-06-04 23:10:29 +05:30
|
|
|
Print the procps-ng version.
|
2011-12-18 06:33:28 +05:30
|
|
|
.TP
|
|
|
|
.B \-\-version
|
2011-06-04 23:10:29 +05:30
|
|
|
Print the procps-ng version.
|
2004-08-10 10:00:27 +05:30
|
|
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH NOTES
|
2011-12-18 06:33:28 +05:30
|
|
|
This
|
|
|
|
.B ps
|
|
|
|
works by reading the virtual files in /proc. This
|
|
|
|
.B ps
|
|
|
|
does not need to be setuid kmem or have any privileges to run. Do not give
|
|
|
|
this
|
|
|
|
.B ps
|
|
|
|
any special permissions.
|
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
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
|
|
|
|
otherwise conforms to. CPU usage is unlikely to add up to exactly 100%.
|
|
|
|
.PP
|
2004-08-10 10:00:27 +05:30
|
|
|
The SIZE and RSS fields don't count some parts of a process including the
|
2011-12-18 06:33:28 +05:30
|
|
|
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).
|
|
|
|
.PP
|
|
|
|
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
|
|
|
|
.IR init (8)
|
|
|
|
if the parent process exits.
|
|
|
|
.PP
|
2015-06-18 10:30:00 +05:30
|
|
|
If the length of the username is greater than the length of the display
|
2020-06-04 17:55:26 +05:30
|
|
|
column, the username will be truncated. See the \fB\-o\fR and \fB\-O\fR
|
|
|
|
formatting options to customize length.
|
2012-05-22 16:20:34 +05:30
|
|
|
.PP
|
2013-03-11 11:30:00 +05:30
|
|
|
Commands options such as
|
2013-01-01 07:42:25 +05:30
|
|
|
.B ps \-aux
|
2012-05-22 16:20:34 +05:30
|
|
|
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
|
2020-06-04 17:55:26 +05:30
|
|
|
running) plus all processes owned by a user named \fIx\fR. If that user
|
2013-03-11 11:30:00 +05:30
|
|
|
doesn't exist, then
|
2012-05-22 16:20:34 +05:30
|
|
|
.B ps
|
2020-06-04 17:55:26 +05:30
|
|
|
will assume you really meant \fBps aux\fR.
|
2004-08-10 10:00:27 +05:30
|
|
|
.SH "PROCESS FLAGS"
|
|
|
|
The sum of these values is displayed in the "F" column,
|
2011-12-18 06:33:28 +05:30
|
|
|
which is provided by the
|
|
|
|
.B flags
|
|
|
|
output specifier:
|
|
|
|
.IP
|
|
|
|
.RS 8
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD 0
|
|
|
|
.TP 5
|
|
|
|
1
|
|
|
|
forked but didn't exec
|
|
|
|
.TP
|
|
|
|
4
|
|
|
|
used super\-user privileges
|
|
|
|
.PD
|
2011-12-18 06:33:28 +05:30
|
|
|
.RE
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.SH "PROCESS STATE CODES"
|
2011-12-18 06:33:28 +05:30
|
|
|
Here are the different values that the
|
|
|
|
.BR s , \ stat \ and \ state
|
|
|
|
output specifiers (header "STAT" or "S") will display to describe the state
|
|
|
|
of a process:
|
|
|
|
.IP
|
|
|
|
.RS 8
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD 0
|
|
|
|
.TP 5
|
|
|
|
D
|
2011-12-18 06:33:28 +05:30
|
|
|
uninterruptible sleep (usually IO)
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
2018-01-13 05:48:09 +05:30
|
|
|
I
|
|
|
|
Idle kernel thread
|
|
|
|
.TP
|
2004-08-10 10:00:27 +05:30
|
|
|
R
|
2011-12-18 06:33:28 +05:30
|
|
|
running or runnable (on run queue)
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
S
|
2011-02-24 18:53:31 +05:30
|
|
|
interruptible sleep (waiting for an event to complete)
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
T
|
2014-07-02 19:53:30 +05:30
|
|
|
stopped by job control signal
|
|
|
|
.TP
|
|
|
|
t
|
|
|
|
stopped by debugger during the tracing
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
W
|
|
|
|
paging (not valid since the 2.6.xx kernel)
|
|
|
|
.TP
|
|
|
|
X
|
|
|
|
dead (should never be seen)
|
|
|
|
.TP
|
|
|
|
Z
|
2011-12-18 06:33:28 +05:30
|
|
|
defunct ("zombie") process, terminated but not reaped by its parent
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD
|
2011-12-18 06:33:28 +05:30
|
|
|
.RE
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
2011-12-18 06:33:28 +05:30
|
|
|
For BSD formats and when the
|
|
|
|
.B stat
|
|
|
|
keyword is used, additional characters may be displayed:
|
|
|
|
.IP
|
|
|
|
.RS 8
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD 0
|
|
|
|
.TP 5
|
|
|
|
<
|
|
|
|
high\-priority (not nice to other users)
|
|
|
|
.TP
|
|
|
|
N
|
|
|
|
low\-priority (nice to other users)
|
|
|
|
.TP
|
|
|
|
L
|
2011-12-18 06:33:28 +05:30
|
|
|
has pages locked into memory (for real\-time and custom IO)
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
s
|
|
|
|
is a session leader
|
|
|
|
.TP
|
|
|
|
l
|
2011-12-18 06:33:28 +05:30
|
|
|
is multi-threaded (using CLONE_THREAD, like NPTL pthreads do)
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
+
|
2011-12-18 06:33:28 +05:30
|
|
|
is in the foreground process group
|
2004-08-10 10:00:27 +05:30
|
|
|
.PD
|
2011-12-18 06:33:28 +05:30
|
|
|
.RE
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.SH "OBSOLETE SORT KEYS"
|
2011-12-18 06:33:28 +05:30
|
|
|
These keys are used by the BSD
|
|
|
|
.B O
|
|
|
|
option (when it is used for sorting). The GNU
|
|
|
|
.B \-\-sort
|
|
|
|
option doesn't use these keys, but the specifiers described below in the
|
|
|
|
.B STANDARD FORMAT SPECIFIERS
|
|
|
|
section. Note that the values used in sorting are the internal values
|
|
|
|
.B ps
|
|
|
|
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
|
|
|
|
output into the
|
|
|
|
.BR sort (1)
|
|
|
|
command if you want to sort the cooked values.
|
2004-08-10 10:00:27 +05:30
|
|
|
.TS
|
|
|
|
l l lw(3i).
|
|
|
|
\fBKEY LONG DESCRIPTION\fR
|
|
|
|
c cmd simple name of executable
|
|
|
|
C pcpu cpu utilization
|
|
|
|
f flags flags as in long format F field
|
|
|
|
g pgrp process group ID
|
|
|
|
G tpgid controlling tty process group ID
|
|
|
|
j cutime cumulative user time
|
|
|
|
J cstime cumulative system time
|
|
|
|
k utime user time
|
|
|
|
m min_flt number of minor page faults
|
|
|
|
M maj_flt number of major page faults
|
|
|
|
n cmin_flt cumulative minor page faults
|
|
|
|
N cmaj_flt cumulative major page faults
|
|
|
|
o session session ID
|
|
|
|
p pid process ID
|
|
|
|
P ppid parent process ID
|
|
|
|
r rss resident set size
|
|
|
|
R resident resident pages
|
|
|
|
s size memory size in kilobytes
|
|
|
|
S share amount of shared pages
|
2005-10-30 08:32:48 +05:30
|
|
|
t tty the device number of the controlling tty
|
2004-08-10 10:00:27 +05:30
|
|
|
T start_time time process was started
|
|
|
|
U uid user ID number
|
|
|
|
u user user name
|
2012-03-09 01:57:12 +05:30
|
|
|
v vsize total VM size in KiB
|
2004-08-10 10:00:27 +05:30
|
|
|
y priority kernel scheduling priority
|
|
|
|
.\"K stime system time (conflict, system vs. start time)
|
|
|
|
.TE
|
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.SH "AIX FORMAT DESCRIPTORS"
|
2011-12-18 06:33:28 +05:30
|
|
|
This
|
|
|
|
.B ps
|
|
|
|
supports AIX format descriptors, which work somewhat like the
|
|
|
|
formatting codes of
|
|
|
|
.IR printf (1)
|
|
|
|
and
|
|
|
|
.IR printf (3).
|
|
|
|
For example, the normal default output can be produced with this:
|
|
|
|
\fBps \-eo "%p %y %x %c"\fR.
|
|
|
|
The
|
|
|
|
.B NORMAL
|
|
|
|
codes are described in the next section.
|
2004-08-10 10:00:27 +05:30
|
|
|
.TS
|
|
|
|
l l l.
|
|
|
|
\fBCODE NORMAL HEADER\fR
|
|
|
|
%C pcpu %CPU
|
|
|
|
%G group GROUP
|
|
|
|
%P ppid PPID
|
|
|
|
%U user USER
|
|
|
|
%a args COMMAND
|
|
|
|
%c comm COMMAND
|
|
|
|
%g rgroup RGROUP
|
|
|
|
%n nice NI
|
|
|
|
%p pid PID
|
|
|
|
%r pgid PGID
|
|
|
|
%t etime ELAPSED
|
|
|
|
%u ruser RUSER
|
|
|
|
%x time TIME
|
|
|
|
%y tty TTY
|
|
|
|
%z vsz VSZ
|
|
|
|
.TE
|
|
|
|
.SH "STANDARD FORMAT SPECIFIERS"
|
|
|
|
Here are the different keywords that may be used to control the output
|
2011-12-18 06:33:28 +05:30
|
|
|
format (e.g. with option
|
|
|
|
.BR \-o )
|
|
|
|
or to sort the selected processes with the GNU\-style
|
|
|
|
.B \-\-sort
|
|
|
|
option.
|
|
|
|
.PP
|
|
|
|
For example:
|
|
|
|
.B ps \-eo pid,\:user,\:args \-\-sort user
|
|
|
|
.PP
|
|
|
|
This version of
|
|
|
|
.B ps
|
|
|
|
tries to recognize most of the keywords used in other implementations of
|
|
|
|
.BR ps .
|
|
|
|
.PP
|
2004-08-10 10:00:27 +05:30
|
|
|
The following user\-defined format specifiers may contain
|
2011-12-18 06:33:28 +05:30
|
|
|
spaces:
|
|
|
|
.BR args , \ cmd , \ comm , \ command , \ fname , \ ucmd , \ ucomm ,
|
|
|
|
.BR lstart , \ bsdstart , \ start .
|
|
|
|
.PP
|
2004-08-10 10:00:27 +05:30
|
|
|
Some keywords may not be available for sorting.
|
|
|
|
|
|
|
|
.\" #######################################################################
|
|
|
|
.\" lB1 lB1 lB1 lB1 s s s
|
|
|
|
.\" lB1 l1 l1 l1 s s s.
|
|
|
|
.\"
|
|
|
|
.\" lB1 lB1 lBw(5.5i)
|
|
|
|
.\" lB1 l1 l.
|
|
|
|
.\"
|
|
|
|
.TS
|
|
|
|
expand;
|
|
|
|
lB1 lB1 lBw(\n[ColSize]n)
|
|
|
|
lB1 l1 l.
|
|
|
|
CODE HEADER DESCRIPTION
|
|
|
|
|
|
|
|
%cpu %CPU T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR pcpu ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
%mem %MEM T{
|
2011-12-18 06:33:28 +05:30
|
|
|
ratio of the process's resident set size to the physical memory on the
|
|
|
|
machine, expressed as a percentage. (alias
|
|
|
|
.BR pmem ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2021-08-06 10:30:00 +05:30
|
|
|
ag_id AGID T{
|
|
|
|
The autogroup identifier associated with a process which operates in conjunction
|
|
|
|
with the CFS scheduler to improve interactive desktop performance.
|
|
|
|
T}
|
|
|
|
|
|
|
|
ag_nice AGNI T{
|
|
|
|
The autogroup nice value which affects scheduling of all processes in that group.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
args COMMAND T{
|
2004-08-18 07:52:13 +05:30
|
|
|
command with all its arguments as a string. Modifications to the arguments
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
will instead print the executable name in brackets. (alias
|
|
|
|
.BR cmd , \ command ).
|
|
|
|
See also the
|
|
|
|
.B comm
|
|
|
|
format keyword, the
|
|
|
|
.B \-f
|
|
|
|
option, and the
|
|
|
|
.B c
|
|
|
|
option.
|
2004-08-18 07:52:13 +05:30
|
|
|
.br
|
2011-12-18 06:33:28 +05:30
|
|
|
When specified last, this column will extend to the edge of the display. If
|
|
|
|
.B ps
|
|
|
|
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
|
|
|
|
variable, and so on). The
|
|
|
|
.B COLUMNS
|
|
|
|
environment variable or
|
|
|
|
.B \-\-cols
|
|
|
|
option may be used to exactly determine the width in this case. The
|
|
|
|
.B w
|
|
|
|
or
|
|
|
|
.B \-w
|
|
|
|
option may be also be used to adjust width.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
blocked BLOCKED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
mask of the blocked signals, see
|
|
|
|
.IR signal (7).
|
|
|
|
According to the width of the field, a 32 or 64\-bit mask in hexadecimal
|
|
|
|
format is displayed. (alias
|
|
|
|
.BR sig_block , \ sigmask ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
bsdstart START T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR lstart , \ start , \ start_time ", and" \ stime .
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
bsdtime TIME T{
|
2011-12-18 06:33:28 +05:30
|
|
|
accumulated cpu time, user + system. The display format is usually
|
2004-08-10 10:00:27 +05:30
|
|
|
"MMM:SS", but can be shifted to the right if the process used more than 999
|
|
|
|
minutes of cpu time.
|
|
|
|
T}
|
|
|
|
|
|
|
|
c C T{
|
2011-12-18 06:33:28 +05:30
|
|
|
processor utilization. Currently, this is the integer value of the percent
|
|
|
|
usage over the lifetime of the process. (see
|
|
|
|
.BR %cpu ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
caught CAUGHT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
mask of the caught signals, see
|
|
|
|
.IR signal (7).
|
|
|
|
According to the width of the field, a 32 or 64 bits mask in hexadecimal
|
|
|
|
format is displayed. (alias
|
|
|
|
.BR sig_catch , \ sigcatch ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2015-08-15 12:40:38 +05:30
|
|
|
cgname CGNAME T{
|
|
|
|
display name of control groups to which the process belongs.
|
|
|
|
T}
|
|
|
|
|
2010-12-16 14:53:49 +05:30
|
|
|
cgroup CGROUP T{
|
|
|
|
display control groups to which the process belongs.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
class CLS T{
|
2011-12-18 06:33:28 +05:30
|
|
|
scheduling class of the process. (alias
|
|
|
|
.BR policy , \ cls ).
|
2004-08-10 10:00:27 +05:30
|
|
|
Field's possible values are:
|
2011-12-28 03:52:43 +05:30
|
|
|
.IP "" 2
|
2004-08-10 10:00:27 +05:30
|
|
|
\- not reported
|
|
|
|
.br
|
|
|
|
TS SCHED_OTHER
|
|
|
|
.br
|
|
|
|
FF SCHED_FIFO
|
|
|
|
.br
|
|
|
|
RR SCHED_RR
|
|
|
|
.br
|
2006-09-10 11:55:56 +05:30
|
|
|
B SCHED_BATCH
|
|
|
|
.br
|
2011-02-10 18:01:14 +05:30
|
|
|
ISO SCHED_ISO
|
|
|
|
.br
|
|
|
|
IDL SCHED_IDLE
|
|
|
|
.br
|
2016-11-07 14:53:01 +05:30
|
|
|
DLN SCHED_DEADLINE
|
|
|
|
.br
|
2004-08-10 10:00:27 +05:30
|
|
|
? unknown value
|
|
|
|
T}
|
|
|
|
|
|
|
|
cls CLS T{
|
2011-12-18 06:33:28 +05:30
|
|
|
scheduling class of the process. (alias
|
|
|
|
.BR policy , \ cls ).
|
2004-08-10 10:00:27 +05:30
|
|
|
Field's possible values are:
|
2011-12-18 06:33:28 +05:30
|
|
|
.IP "" 2
|
2004-08-10 10:00:27 +05:30
|
|
|
\- not reported
|
|
|
|
.br
|
|
|
|
TS SCHED_OTHER
|
|
|
|
.br
|
|
|
|
FF SCHED_FIFO
|
|
|
|
.br
|
|
|
|
RR SCHED_RR
|
|
|
|
.br
|
2006-09-10 11:55:56 +05:30
|
|
|
B SCHED_BATCH
|
|
|
|
.br
|
2011-02-10 18:01:14 +05:30
|
|
|
ISO SCHED_ISO
|
|
|
|
.br
|
|
|
|
IDL SCHED_IDLE
|
|
|
|
.br
|
2016-11-07 14:53:01 +05:30
|
|
|
DLN SCHED_DEADLINE
|
|
|
|
.br
|
2004-08-10 10:00:27 +05:30
|
|
|
? unknown value
|
|
|
|
T}
|
|
|
|
|
|
|
|
cmd CMD T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR args .
|
|
|
|
(alias
|
|
|
|
.BR args , \ command ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
comm COMMAND T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR ucmd , \ ucomm ).
|
|
|
|
See also the
|
2020-06-04 17:55:26 +05:30
|
|
|
.B args
|
|
|
|
format keyword, the
|
2011-12-18 06:33:28 +05:30
|
|
|
.B \-f
|
|
|
|
option, and the
|
|
|
|
.B c
|
|
|
|
option.
|
2004-08-18 07:52:13 +05:30
|
|
|
.br
|
2011-12-18 06:33:28 +05:30
|
|
|
When specified last, this column will extend to the edge of the display. If
|
|
|
|
.B ps
|
|
|
|
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
|
|
|
|
variable, and so on). The
|
|
|
|
.B COLUMNS
|
|
|
|
environment variable or
|
|
|
|
.B \-\-cols
|
|
|
|
option may be used to exactly determine the width in this case. The
|
|
|
|
.BR w \ or \ \-w
|
|
|
|
option may be also be used to adjust width.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
command COMMAND T{
|
2011-12-18 06:33:28 +05:30
|
|
|
See
|
|
|
|
.BR args .
|
|
|
|
(alias
|
|
|
|
.BR args , \ command ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
cp CP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
per\-mill (tenths of a percent) CPU usage. (see
|
|
|
|
.BR %cpu ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
cputime TIME T{
|
2011-12-18 06:33:28 +05:30
|
|
|
cumulative CPU time, "[DD\-]hh:mm:ss" format. (alias
|
|
|
|
.BR time ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2017-03-11 12:10:19 +05:30
|
|
|
cputimes TIME T{
|
|
|
|
cumulative CPU time in seconds (alias
|
|
|
|
.BR times ).
|
|
|
|
T}
|
|
|
|
|
2022-03-06 11:30:00 +05:30
|
|
|
cuc %CUC T{
|
|
|
|
The CPU utilization of a process, including dead children, in an extended "##.###" format.
|
|
|
|
(see also
|
|
|
|
.BR %cpu ,
|
|
|
|
.BR c ,
|
|
|
|
.BR cp ,
|
|
|
|
.BR cuu ,
|
|
|
|
.BR pcpu ).
|
|
|
|
T}
|
|
|
|
|
2022-03-04 11:30:00 +05:30
|
|
|
cuu %CUU T{
|
|
|
|
The CPU utilization of a process in an extended "##.###" format.
|
|
|
|
(see also
|
|
|
|
.BR %cpu ,
|
|
|
|
.BR c ,
|
|
|
|
.BR cp ,
|
2022-03-06 11:30:00 +05:30
|
|
|
.BR cuc ,
|
2022-03-04 11:30:00 +05:30
|
|
|
.BR pcpu ).
|
|
|
|
T}
|
|
|
|
|
2014-05-24 10:30:00 +05:30
|
|
|
drs DRS T{
|
|
|
|
data resident set size, the amount of physical memory devoted to other than
|
|
|
|
executable code.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
egid EGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
effective group ID number of the process as a decimal integer. (alias
|
|
|
|
.BR gid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
egroup EGROUP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR group ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
eip EIP T{
|
|
|
|
instruction pointer.
|
|
|
|
T}
|
|
|
|
|
|
|
|
esp ESP T{
|
|
|
|
stack pointer.
|
|
|
|
T}
|
|
|
|
|
|
|
|
etime ELAPSED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
elapsed time since the process was started, in the form [[DD\-]hh:]mm:ss.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2011-09-12 17:48:23 +05:30
|
|
|
etimes ELAPSED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
elapsed time since the process was started, in seconds.
|
2011-09-12 17:48:23 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
euid EUID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
effective user ID (alias
|
|
|
|
.BR uid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
euser EUSER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
option can be used to force the decimal representation. (alias
|
|
|
|
.BR uname , \ user ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2018-06-22 10:30:00 +05:30
|
|
|
exe EXE T{
|
|
|
|
path to the executable. Useful if path cannot be printed via
|
|
|
|
.BR cmd ", " comm
|
|
|
|
or
|
|
|
|
.BR args
|
|
|
|
format options.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
f F T{
|
2011-12-18 06:33:28 +05:30
|
|
|
flags associated with the process, see the
|
|
|
|
.B PROCESS FLAGS
|
|
|
|
section. (alias
|
|
|
|
.BR flag , \ flags ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
fgid FGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
filesystem access group\ ID. (alias
|
|
|
|
.BR fsgid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
fgroup FGROUP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR fsgroup ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
flag F T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR f .
|
|
|
|
(alias
|
|
|
|
.BR f , \ flags ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
flags F T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR f .
|
|
|
|
(alias
|
|
|
|
.BR f , \ flag ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
fname COMMAND T{
|
2011-12-18 06:33:28 +05:30
|
|
|
first 8 bytes of the base name of the process's executable file. The output
|
|
|
|
in this column may contain spaces.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
fuid FUID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
filesystem access user ID. (alias
|
|
|
|
.BR fsuid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
fuser FUSER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
gid GID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR egid .
|
|
|
|
(alias
|
|
|
|
.BR egid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
group GROUP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR egroup .
|
|
|
|
(alias
|
|
|
|
.BR egroup ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
ignored IGNORED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
mask of the ignored signals, see
|
|
|
|
.IR signal (7).
|
|
|
|
According to the width of the field, a 32 or 64 bits mask in hexadecimal
|
|
|
|
format is displayed. (alias
|
|
|
|
.BR sig_ignore , \ sigignore ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-04-09 00:33:13 +05:30
|
|
|
ipcns IPCNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
label LABEL T{
|
2012-09-27 17:16:46 +05:30
|
|
|
security label, most commonly used for SELinux context data. This is for
|
2011-12-18 06:33:28 +05:30
|
|
|
the
|
|
|
|
.I Mandatory Access Control
|
|
|
|
("MAC") found on high\-security systems.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
lstart STARTED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
time the command started. See also
|
|
|
|
.BR bsdstart , \ start , \ start_time ", and" \ stime .
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
lsession SESSION T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays the login session identifier of a process,
|
|
|
|
if systemd support has been included.
|
2013-05-10 17:09:00 +05:30
|
|
|
T}
|
|
|
|
|
2018-02-11 13:52:22 +05:30
|
|
|
luid LUID T{
|
|
|
|
displays Login ID associated with a process.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
lwp LWP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
light weight process (thread) ID of the dispatchable entity (alias
|
|
|
|
.BR spid , \ tid ).
|
|
|
|
See
|
|
|
|
.B tid
|
|
|
|
for additional information.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2015-06-13 10:30:00 +05:30
|
|
|
lxc LXC T{
|
|
|
|
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.
|
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
machine MACHINE T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays the machine name for processes assigned to VM or container,
|
|
|
|
if systemd support has been included.
|
2013-05-10 17:09:00 +05:30
|
|
|
T}
|
|
|
|
|
2011-02-24 18:53:31 +05:30
|
|
|
maj_flt MAJFLT T{
|
2012-04-23 22:20:49 +05:30
|
|
|
The number of major page faults that have occurred with this process.
|
2011-02-24 18:53:31 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
min_flt MINFLT T{
|
2012-04-23 22:20:49 +05:30
|
|
|
The number of minor page faults that have occurred with this process.
|
2011-02-24 18:53:31 +05:30
|
|
|
T}
|
|
|
|
|
2013-04-09 00:33:13 +05:30
|
|
|
mntns MNTNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
netns NETNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
ni NI T{
|
2011-12-18 06:33:28 +05:30
|
|
|
nice value. This ranges from 19 (nicest) to \-20 (not nice to others),
|
|
|
|
see
|
|
|
|
.IR nice (1).
|
|
|
|
(alias
|
|
|
|
.BR nice ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
nice NI T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR ni . (alias
|
|
|
|
.BR ni ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
nlwp NLWP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
number of lwps (threads) in the process. (alias
|
|
|
|
.BR thcount ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2017-05-12 10:35:00 +05:30
|
|
|
numa NUMA T{
|
2020-10-03 16:56:22 +05:30
|
|
|
The node associated with the most recently used processor.
|
2020-06-04 17:55:26 +05:30
|
|
|
A \fI\-1\fR means that NUMA information is unavailable.
|
2017-05-12 10:35:00 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
nwchan WCHAN T{
|
2011-12-18 06:33:28 +05:30
|
|
|
address of the kernel function where the process is sleeping (use
|
|
|
|
.B wchan
|
2016-10-07 16:25:55 +05:30
|
|
|
if you want the kernel function name).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2021-03-05 11:52:29 +05:30
|
|
|
oom OOM T{
|
|
|
|
Out of Memory Score. The value, ranging from 0 to +1000, used to select
|
|
|
|
task(s) to kill when memory is exhausted.
|
|
|
|
T}
|
|
|
|
|
|
|
|
oomadj OOMADJ T{
|
|
|
|
Out of Memory Adjustment Factor. The value is added to the current out of
|
|
|
|
memory score which is then used to determine which task to kill when memory
|
|
|
|
is exhausted.
|
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
ouid OWNER T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays the Unix user identifier of the owner of the session of a process,
|
|
|
|
if systemd support has been included.
|
2013-05-10 17:09:00 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
pcpu %CPU T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR %cpu .
|
|
|
|
(alias
|
|
|
|
.BR %cpu ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
pending PENDING T{
|
2011-12-18 06:33:28 +05:30
|
|
|
mask of the pending signals. See
|
|
|
|
.IR signal (7).
|
|
|
|
Signals pending on the process are distinct from signals pending on
|
|
|
|
individual threads. Use the
|
|
|
|
.B m
|
|
|
|
option or the
|
|
|
|
.B \-m
|
|
|
|
option to see both. According to the width of the field, a 32 or 64 bits
|
|
|
|
mask in hexadecimal format is displayed. (alias
|
|
|
|
.BR sig ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
pgid PGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
process group ID or, equivalently, the process ID of the process group
|
|
|
|
leader. (alias
|
|
|
|
.BR pgrp ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
pgrp PGRP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR pgid .
|
|
|
|
(alias
|
|
|
|
.BR pgid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
pid PID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
a number representing the process ID (alias
|
|
|
|
.BR tgid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-04-09 00:33:13 +05:30
|
|
|
pidns PIDNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
pmem %MEM T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR %mem .
|
|
|
|
(alias
|
|
|
|
.BR %mem ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
policy POL T{
|
2011-12-18 06:33:28 +05:30
|
|
|
scheduling class of the process. (alias
|
|
|
|
.BR class , \ cls ).
|
2004-08-10 10:00:27 +05:30
|
|
|
Possible values are:
|
2011-12-18 06:33:28 +05:30
|
|
|
.IP "" 2
|
2004-08-10 10:00:27 +05:30
|
|
|
\- not reported
|
|
|
|
.br
|
|
|
|
TS SCHED_OTHER
|
|
|
|
.br
|
|
|
|
FF SCHED_FIFO
|
|
|
|
.br
|
|
|
|
RR SCHED_RR
|
|
|
|
.br
|
2006-09-10 11:55:56 +05:30
|
|
|
B SCHED_BATCH
|
|
|
|
.br
|
2011-02-10 18:01:14 +05:30
|
|
|
ISO SCHED_ISO
|
|
|
|
.br
|
|
|
|
IDL SCHED_IDLE
|
|
|
|
.br
|
2016-11-07 14:53:01 +05:30
|
|
|
DLN SCHED_DEADLINE
|
|
|
|
.br
|
2004-08-10 10:00:27 +05:30
|
|
|
? unknown value
|
|
|
|
T}
|
|
|
|
|
|
|
|
ppid PPID T{
|
|
|
|
parent process ID.
|
|
|
|
T}
|
|
|
|
|
2011-02-24 18:53:31 +05:30
|
|
|
pri PRI T{
|
2021-09-15 17:06:40 +05:30
|
|
|
priority of the process. Higher number means higher priority.
|
2011-02-24 18:53:31 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
psr PSR T{
|
2021-03-29 16:41:27 +05:30
|
|
|
processor that process last executed on.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2021-06-16 16:43:52 +05:30
|
|
|
pss PSS T{
|
|
|
|
Proportional share size, the non-swapped physical memory, with shared memory
|
|
|
|
proportionally accounted to all tasks mapping it.
|
|
|
|
T}
|
|
|
|
|
2021-04-24 18:43:38 +05:30
|
|
|
rbytes RBYTES T{
|
|
|
|
Number of bytes which this process really did cause to be fetched from the storage layer.
|
|
|
|
T}
|
|
|
|
|
|
|
|
rchars RCHARS T{
|
|
|
|
Number of bytes which this task has caused to be read from storage.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
rgid RGID T{
|
|
|
|
real group ID.
|
|
|
|
T}
|
|
|
|
|
|
|
|
rgroup RGROUP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2021-04-24 18:43:38 +05:30
|
|
|
rops ROPS T{
|
|
|
|
Number of read I/O operations—that is, system calls such as
|
|
|
|
.BR read "(2) and " pread (2).
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
rss RSS T{
|
2014-05-24 10:30:00 +05:30
|
|
|
resident set size, the non\-swapped physical memory that a task has used (in
|
2011-12-18 06:33:28 +05:30
|
|
|
kiloBytes). (alias
|
|
|
|
.BR rssize , \ rsz ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
rssize RSS T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR rss .
|
|
|
|
(alias
|
|
|
|
.BR rss , \ rsz ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
rsz RSZ T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR rss .
|
|
|
|
(alias
|
|
|
|
.BR rss , \ rssize ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
rtprio RTPRIO T{
|
|
|
|
realtime priority.
|
|
|
|
T}
|
|
|
|
|
|
|
|
ruid RUID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
real user ID.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
ruser RUSER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
s S T{
|
2011-12-18 06:33:28 +05:30
|
|
|
minimal state display (one character). See section
|
|
|
|
.B PROCESS STATE CODES
|
|
|
|
for the different values. See also
|
|
|
|
.B stat
|
|
|
|
if you want additional information displayed. (alias
|
|
|
|
.BR state ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sched SCH T{
|
2011-02-10 18:01:14 +05:30
|
|
|
scheduling policy of the process. The policies SCHED_OTHER (SCHED_NORMAL),
|
2016-11-07 14:53:01 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
seat SEAT T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays the identifier associated with all hardware devices assigned
|
|
|
|
to a specific workplace,
|
|
|
|
if systemd support has been included.
|
2013-04-22 16:46:33 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
sess SESS T{
|
2011-12-18 06:33:28 +05:30
|
|
|
session ID or, equivalently, the process ID of the session leader. (alias
|
|
|
|
.BR session , \ sid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sgi_p P T{
|
2011-12-18 06:33:28 +05:30
|
|
|
processor that the process is currently executing on. Displays "*" if the
|
|
|
|
process is not currently running or runnable.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sgid SGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
saved group ID. (alias
|
|
|
|
.BR svgid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sgroup SGROUP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sid SID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR sess .
|
|
|
|
(alias
|
|
|
|
.BR sess , \ session ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sig PENDING T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR pending .
|
|
|
|
(alias
|
|
|
|
.BR pending , \ sig_pend ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sigcatch CAUGHT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR caught .
|
|
|
|
(alias
|
|
|
|
.BR caught , \ sig_catch ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sigignore IGNORED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR ignored .
|
|
|
|
(alias
|
|
|
|
.BR ignored , \ sig_ignore ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sigmask BLOCKED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR blocked .
|
|
|
|
(alias
|
|
|
|
.BR blocked , \ sig_block ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2009-10-05 16:19:04 +05:30
|
|
|
size SIZE T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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!
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-08-07 15:27:24 +05:30
|
|
|
slice SLICE T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays the slice unit which a process belongs to,
|
|
|
|
if systemd support has been included.
|
2013-08-07 15:27:24 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
spid SPID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR lwp .
|
|
|
|
(alias
|
|
|
|
.BR lwp , \ tid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
stackp STACKP T{
|
|
|
|
address of the bottom (start) of stack for the process.
|
|
|
|
T}
|
|
|
|
|
|
|
|
start STARTED T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR lstart , \ bsdstart , \ start_time ", and" \ stime .
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
start_time START T{
|
2011-12-18 06:33:28 +05:30
|
|
|
starting time or date of the process. Only the year will be displayed if the
|
|
|
|
process was not started the same year
|
|
|
|
.B ps
|
|
|
|
was invoked, or "MmmDD" if it was not started the same day, or "HH:MM"
|
|
|
|
otherwise. See also
|
|
|
|
.BR bsdstart , \ start , \ lstart ", and" \ stime .
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
stat STAT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
multi\-character process state. See section
|
|
|
|
.B PROCESS STATE CODES
|
|
|
|
for the different values meaning. See also
|
|
|
|
.BR s \ and \ state
|
|
|
|
if you just want the first character displayed.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
state S T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR s ". (alias" \ s ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2020-04-07 15:05:27 +05:30
|
|
|
stime STIME T{
|
|
|
|
see \fBstart_time\fR. (alias \fBstart_time\fR).
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
suid SUID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
saved user ID. (alias
|
|
|
|
.BR svuid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2011-08-01 16:58:46 +05:30
|
|
|
supgid SUPGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
group ids of supplementary groups, if any. See
|
2011-08-01 16:58:46 +05:30
|
|
|
.BR getgroups (2).
|
|
|
|
T}
|
|
|
|
|
|
|
|
supgrp SUPGRP T{
|
2011-12-18 06:33:28 +05:30
|
|
|
group names of supplementary groups, if any. See
|
2011-08-01 16:58:46 +05:30
|
|
|
.BR getgroups (2).
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
suser SUSER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR svuser ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
svgid SVGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR sgid .
|
|
|
|
(alias
|
|
|
|
.BR sgid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
svuid SVUID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR suid .
|
|
|
|
(alias
|
|
|
|
.BR suid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
sz SZ T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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
|
|
|
|
.BR vsz \ and \ rss .
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2011-08-17 16:31:35 +05:30
|
|
|
tgid TGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
a number representing the thread group to which a task belongs (alias
|
|
|
|
.BR pid ).
|
2011-08-17 16:31:35 +05:30
|
|
|
It is the process ID of the thread group leader.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
thcount THCNT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR nlwp .
|
|
|
|
(alias
|
|
|
|
.BR nlwp ).
|
2004-08-10 10:00:27 +05:30
|
|
|
number of kernel threads owned by the process.
|
|
|
|
T}
|
|
|
|
|
|
|
|
tid TID T{
|
2014-04-23 10:30:04 +05:30
|
|
|
the unique number representing a dispatchable entity (alias
|
2011-12-18 06:33:28 +05:30
|
|
|
.BR lwp , \ spid ).
|
|
|
|
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).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
time TIME T{
|
2011-12-18 06:33:28 +05:30
|
|
|
cumulative CPU\ time, "[DD\-]HH:MM:SS" format. (alias
|
|
|
|
.BR cputime ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2017-03-11 12:10:19 +05:30
|
|
|
times TIME T{
|
|
|
|
cumulative CPU\ time in seconds (alias
|
|
|
|
.BR cputimes ).
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
tname TTY T{
|
2011-12-18 06:33:28 +05:30
|
|
|
controlling tty (terminal). (alias
|
|
|
|
.BR tt , \ tty ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
tpgid TPGID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
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.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2014-05-24 10:30:00 +05:30
|
|
|
trs TRS T{
|
|
|
|
text resident set size, the amount of physical memory devoted to executable code.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
tt TT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
controlling tty (terminal). (alias
|
|
|
|
.BR tname , \ tty ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
tty TT T{
|
2011-12-18 06:33:28 +05:30
|
|
|
controlling tty (terminal). (alias
|
|
|
|
.BR tname , \ tt ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
ucmd CMD T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR comm .
|
|
|
|
(alias
|
|
|
|
.BR comm , \ ucomm ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
ucomm COMMAND T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR comm .
|
|
|
|
(alias
|
|
|
|
.BR comm , \ ucmd ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
uid UID T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR euid .
|
|
|
|
(alias
|
|
|
|
.BR euid ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
uname USER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR euser .
|
|
|
|
(alias
|
|
|
|
.BR euser , \ user ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
unit UNIT T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays unit which a process belongs to,
|
|
|
|
if systemd support has been included.
|
2013-05-10 17:09:00 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
user USER T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR euser .
|
|
|
|
(alias
|
|
|
|
.BR euser , \ uname ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2013-04-09 00:33:13 +05:30
|
|
|
userns USERNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
2021-06-16 16:43:52 +05:30
|
|
|
uss USS T{
|
|
|
|
Unique set size, the non-swapped physical memory, which
|
|
|
|
is not shared with an another task.
|
|
|
|
T}
|
|
|
|
|
2013-04-09 00:33:13 +05:30
|
|
|
utsns UTSNS T{
|
2020-06-04 17:55:26 +05:30
|
|
|
Unique inode number describing the namespace the process belongs to.
|
|
|
|
See
|
|
|
|
.IR namespaces (7).
|
2013-04-09 00:33:13 +05:30
|
|
|
T}
|
|
|
|
|
2013-05-10 17:09:00 +05:30
|
|
|
uunit UUNIT T{
|
2014-06-28 10:30:11 +05:30
|
|
|
displays user unit which a process belongs to,
|
|
|
|
if systemd support has been included.
|
2013-05-10 17:09:00 +05:30
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
vsize VSZ T{
|
2011-12-18 06:33:28 +05:30
|
|
|
see
|
|
|
|
.BR vsz .
|
|
|
|
(alias
|
|
|
|
.BR vsz ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
|
|
|
vsz VSZ T{
|
2011-12-18 06:33:28 +05:30
|
|
|
virtual memory size of the process in KiB (1024\-byte units). Device
|
|
|
|
mappings are currently excluded; this is subject to change. (alias
|
|
|
|
.BR vsize ).
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
|
|
|
|
2021-04-24 18:43:38 +05:30
|
|
|
wbytes WBYTES T{
|
|
|
|
Number of bytes which this process caused to be sent to the storage layer.
|
|
|
|
T}
|
|
|
|
|
|
|
|
wcbytes WCBYTES T{
|
|
|
|
Number of cancelled write bytes.
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
wchan WCHAN T{
|
2016-10-07 16:25:55 +05:30
|
|
|
name of the kernel function in which the process is sleeping.
|
2004-08-10 10:00:27 +05:30
|
|
|
T}
|
2011-12-18 06:33:28 +05:30
|
|
|
|
2021-04-24 18:43:38 +05:30
|
|
|
wchars WCHARS T{
|
|
|
|
Number of bytes which this task has caused, or shall cause to be written to disk.
|
|
|
|
T}
|
|
|
|
|
|
|
|
wops WOPS T{
|
|
|
|
Number of write I/O operations—that is, system calls such as
|
|
|
|
.BR write "(2) and " pwrite (2).
|
|
|
|
T}
|
|
|
|
|
2004-08-10 10:00:27 +05:30
|
|
|
.TE
|
|
|
|
.\" #######################################################################
|
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.SH "ENVIRONMENT VARIABLES"
|
2011-12-18 06:33:28 +05:30
|
|
|
The following environment variables could affect
|
|
|
|
.BR ps :
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP 3
|
|
|
|
.B COLUMNS
|
|
|
|
Override default display width.
|
|
|
|
.TP
|
|
|
|
.B LINES
|
|
|
|
Override default display height.
|
|
|
|
.TP
|
|
|
|
.B PS_PERSONALITY
|
2011-12-18 06:33:28 +05:30
|
|
|
Set to one of posix, old, linux, bsd, sun, digital... (see section
|
|
|
|
.B PERSONALITY
|
|
|
|
below).
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
.B CMD_ENV
|
2011-12-18 06:33:28 +05:30
|
|
|
Set to one of posix, old, linux, bsd, sun, digital... (see section
|
|
|
|
.B PERSONALITY
|
|
|
|
below).
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
.B I_WANT_A_BROKEN_PS
|
|
|
|
Force obsolete command line interpretation.
|
|
|
|
.TP
|
|
|
|
.B LC_TIME
|
|
|
|
Date format.
|
|
|
|
.TP
|
2022-01-04 04:30:00 +05:30
|
|
|
.B LIBPROC_HIDE_KERNEL
|
|
|
|
Set this to any value to hide kernel threads normally displayed with the
|
|
|
|
.B -e
|
|
|
|
option. This is equivalent to selecting
|
|
|
|
.B --ppid 2 -p 2 --deselect
|
|
|
|
instead. Also works in BSD mode.
|
|
|
|
.TP
|
2004-08-10 10:00:27 +05:30
|
|
|
.B PS_COLORS
|
|
|
|
Not currently supported.
|
|
|
|
.TP
|
|
|
|
.B PS_FORMAT
|
2004-08-18 07:52:13 +05:30
|
|
|
Default output format override. You may set this to a format
|
2011-12-18 06:33:28 +05:30
|
|
|
string of the type used for the
|
|
|
|
.B \-o
|
|
|
|
option.
|
|
|
|
The
|
|
|
|
.B DefSysV
|
|
|
|
and
|
|
|
|
.B DefBSD
|
|
|
|
values are particularly useful.
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
.B POSIXLY_CORRECT
|
|
|
|
Don't find excuses to ignore bad "features".
|
|
|
|
.TP
|
|
|
|
.B POSIX2
|
2011-12-18 06:33:28 +05:30
|
|
|
When set to "on", acts as
|
|
|
|
.BR POSIXLY_CORRECT .
|
2004-08-10 10:00:27 +05:30
|
|
|
.TP
|
|
|
|
.B UNIX95
|
|
|
|
Don't find excuses to ignore bad "features".
|
|
|
|
.TP
|
|
|
|
.B _XPG
|
2011-12-18 06:33:28 +05:30
|
|
|
Cancel \fBCMD_ENV\fR=\fIirix\fR non\-standard behavior.
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
2011-12-18 06:33:28 +05:30
|
|
|
In general, it is a bad idea to set these variables. The one exception is
|
|
|
|
.B CMD_ENV
|
|
|
|
or
|
|
|
|
.BR PS_PERSONALITY ,
|
|
|
|
which could be set to Linux for normal systems. Without that setting,
|
|
|
|
.B ps
|
|
|
|
follows the useless and bad parts of the Unix98 standard.
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.SH "PERSONALITY"
|
|
|
|
.TS
|
|
|
|
l l.
|
2011-02-24 18:53:31 +05:30
|
|
|
390 like the OS/390 OpenEdition \fBps\fR
|
2004-08-10 10:00:27 +05:30
|
|
|
aix like AIX \fBps\fR
|
2011-12-18 06:33:28 +05:30
|
|
|
bsd like FreeBSD \fBps\fR (totally non\-standard)
|
2004-08-10 10:00:27 +05:30
|
|
|
compaq like Digital Unix \fBps\fR
|
|
|
|
debian like the old Debian \fBps\fR
|
|
|
|
digital like Tru64 (was Digital\ Unix, was OSF/1) \fBps\fR
|
|
|
|
gnu like the old Debian \fBps\fR
|
|
|
|
hp like HP\-UX \fBps\fR
|
|
|
|
hpux like HP\-UX \fBps\fR
|
|
|
|
irix like Irix \fBps\fR
|
2011-12-18 06:33:28 +05:30
|
|
|
linux ***** \fBrecommended\fR *****
|
|
|
|
old like the original Linux \fBps\fR (totally non\-standard)
|
2004-08-10 10:00:27 +05:30
|
|
|
os390 like OS/390 Open Edition \fBps\fR
|
|
|
|
posix standard
|
|
|
|
s390 like OS/390 Open Edition \fBps\fR
|
|
|
|
sco like SCO \fBps\fR
|
|
|
|
sgi like Irix \fBps\fR
|
|
|
|
solaris2 like Solaris 2+ (SunOS 5) \fBps\fR
|
2011-12-18 06:33:28 +05:30
|
|
|
sunos4 like SunOS 4 (Solaris 1) \fBps\fR (totally non\-standard)
|
2004-08-10 10:00:27 +05:30
|
|
|
svr4 standard
|
|
|
|
sysv standard
|
2011-12-18 06:33:28 +05:30
|
|
|
tru64 like Tru64 (was Digital Unix, was OSF/1) \fBps\fR
|
2004-08-10 10:00:27 +05:30
|
|
|
unix standard
|
|
|
|
unix95 standard
|
|
|
|
unix98 standard
|
|
|
|
.TE
|
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.SH "SEE ALSO"
|
2011-12-18 06:33:28 +05:30
|
|
|
.BR pgrep (1),
|
|
|
|
.BR pstree (1),
|
|
|
|
.BR top (1),
|
|
|
|
.BR proc (5).
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.PP
|
|
|
|
.SH STANDARDS
|
2011-12-18 06:33:28 +05:30
|
|
|
This
|
|
|
|
.B ps
|
|
|
|
conforms to:
|
2004-08-10 10:00:27 +05:30
|
|
|
.PP
|
|
|
|
.PD 0
|
|
|
|
.IP 1 4
|
|
|
|
Version 2 of the Single Unix Specification
|
|
|
|
.IP 2 4
|
|
|
|
The Open Group Technical Standard Base Specifications, Issue\ 6
|
|
|
|
.IP 3 4
|
|
|
|
IEEE Std 1003.1, 2004\ Edition
|
|
|
|
.IP 4 4
|
|
|
|
X/Open System Interfaces Extension [UP\ XSI]
|
|
|
|
.IP 5 4
|
|
|
|
ISO/IEC 9945:2003
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
.SH AUTHOR
|
2011-12-18 06:33:28 +05:30
|
|
|
.B ps
|
|
|
|
was originally written by
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR lankeste@\:fwi.\:uva.\:nl
|
2011-12-18 06:33:28 +05:30
|
|
|
Branko Lankester
|
|
|
|
.UE .
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR johnsonm@\:redhat.\:com
|
2011-12-18 06:33:28 +05:30
|
|
|
Michael K. Johnson
|
|
|
|
.UE
|
|
|
|
re\-wrote it significantly to use the proc filesystem, changing a few things
|
|
|
|
in the process.
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR mjshield@\:nyx.\:cs.\:du.\:edu
|
2011-12-18 06:33:28 +05:30
|
|
|
Michael Shields
|
|
|
|
.UE
|
|
|
|
added the pid\-list feature.
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR cblake@\:bbn.\:com
|
2011-12-18 06:33:28 +05:30
|
|
|
Charles Blake
|
|
|
|
.UE
|
|
|
|
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.
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR albert@\:users.\:sf.\:net
|
2011-12-18 06:33:28 +05:30
|
|
|
Albert Cahalan
|
|
|
|
.UE
|
|
|
|
rewrote ps for full Unix98 and BSD support, along with some ugly hacks for
|
|
|
|
obsolete and foreign syntax.
|
|
|
|
.PP
|
|
|
|
Please send bug reports to
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR procps@\:freelists.\:org
|
2011-12-18 06:33:28 +05:30
|
|
|
.UE .
|
|
|
|
No subscription is required or suggested.
|