use .opt macro all over
This commit is contained in:
parent
f2dab95a92
commit
dfd72b363c
259
ps/ps.1
259
ps/ps.1
@ -7,8 +7,8 @@
|
|||||||
.TH PS 1 "July 28, 2004" "Linux" "Linux User's Manual"
|
.TH PS 1 "July 28, 2004" "Linux" "Linux User's Manual"
|
||||||
.\"
|
.\"
|
||||||
.\" To render this page:
|
.\" To render this page:
|
||||||
.\" groff -t -b -man -X -P-resolution -P100 -Tps nicolas-ps.1 &
|
.\" groff -t -b -man -X -P-resolution -P100 -Tps ps.1 &
|
||||||
.\" groff -t -b -man -X -TX100 nicolas-ps.1 &
|
.\" groff -t -b -man -X -TX100 ps.1 &
|
||||||
.\" tbl ps.1 | troff -Ww -man -z
|
.\" tbl ps.1 | troff -Ww -man -z
|
||||||
.\" groff -t -man -Tps ps.1 | ps2pdf - - > ps.pdf
|
.\" groff -t -man -Tps ps.1 | ps2pdf - - > ps.pdf
|
||||||
.\"
|
.\"
|
||||||
@ -160,12 +160,10 @@ Print only the name of PID 42:
|
|||||||
.PP
|
.PP
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
.SH "SIMPLE PROCESS SELECTION"
|
.SH "SIMPLE PROCESS SELECTION"
|
||||||
.TP \n[OptSize]
|
.opt \-A
|
||||||
.B \-A
|
|
||||||
Select all processes. Identical to \fB\-e\fR.
|
Select all processes. Identical to \fB\-e\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-N
|
||||||
.B \-N
|
|
||||||
Select all processes except those that fulfill the specified conditions.
|
Select all processes except those that fulfill the specified conditions.
|
||||||
(negates the selection) Identical to \fB\-\-deselect\fR.
|
(negates the selection) Identical to \fB\-\-deselect\fR.
|
||||||
|
|
||||||
@ -173,13 +171,11 @@ Select all processes except those that fulfill the specified conditions.
|
|||||||
Select all processes associated with this terminal. Identical to the
|
Select all processes associated with this terminal. Identical to the
|
||||||
\fBt\fR option without any argument.
|
\fBt\fR option without any argument.
|
||||||
|
|
||||||
.TP
|
.opt \-a
|
||||||
.B \-a
|
|
||||||
Select all processes except session leaders (see \fIgetsid\fR(2)) and
|
Select all processes except session leaders (see \fIgetsid\fR(2)) and
|
||||||
processes not associated with a terminal.
|
processes not associated with a terminal.
|
||||||
|
|
||||||
.TP
|
.opt a
|
||||||
.B a
|
|
||||||
Lift the BSD\-style "only yourself" restriction, which is imposed upon
|
Lift the BSD\-style "only yourself" restriction, which is imposed upon
|
||||||
the set of all processes when some BSD\-style (without\ "\-") options
|
the set of all processes when some BSD\-style (without\ "\-") options
|
||||||
are used or when the \fBps\fR personality setting is BSD\-like.
|
are used or when the \fBps\fR personality setting is BSD\-like.
|
||||||
@ -189,12 +185,10 @@ An alternate description is that this option causes \fBps\fR to
|
|||||||
list all processes with a terminal (tty),
|
list all processes with a terminal (tty),
|
||||||
or to list all processes when used together with the \fBx\fR option.
|
or to list all processes when used together with the \fBx\fR option.
|
||||||
|
|
||||||
.TP
|
.opt \-d
|
||||||
.B \-d
|
|
||||||
Select all processes except session leaders.
|
Select all processes except session leaders.
|
||||||
|
|
||||||
.TP
|
.opt \-e
|
||||||
.B \-e
|
|
||||||
Select all processes. Identical to \fB\-A\fR.
|
Select all processes. Identical to \fB\-A\fR.
|
||||||
|
|
||||||
.\" Current "g" behavior: add in the session leaders, which would
|
.\" Current "g" behavior: add in the session leaders, which would
|
||||||
@ -202,18 +196,15 @@ Select all processes. Identical to \fB\-A\fR.
|
|||||||
.\" add in the group leaders -- at least according to the SunOS 4
|
.\" 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
|
.\" man page on the FreeBSD site. Uh oh. I think I had tested SunOS
|
||||||
.\" though, so maybe the code is correct.
|
.\" though, so maybe the code is correct.
|
||||||
.TP
|
.opt g
|
||||||
.B g
|
|
||||||
Really all, even session leaders. This flag is obsolete and may be
|
Really all, even session leaders. This flag is obsolete and may be
|
||||||
discontinued in a future release. It is normally implied by the \fBa\fR flag,
|
discontinued in a future release. It is normally implied by the \fBa\fR flag,
|
||||||
and is only useful when operating in the sunos4 personality.
|
and is only useful when operating in the sunos4 personality.
|
||||||
|
|
||||||
.TP
|
.opt r
|
||||||
.B r
|
|
||||||
Restrict the selection to only running processes.
|
Restrict the selection to only running processes.
|
||||||
|
|
||||||
.TP
|
.opt x
|
||||||
.B x
|
|
||||||
Lift the BSD\-style "must have a tty" restriction, which is imposed upon
|
Lift the BSD\-style "must have a tty" restriction, which is imposed upon
|
||||||
the set of all processes when some BSD\-style (without\ "\-") options
|
the set of all processes when some BSD\-style (without\ "\-") options
|
||||||
are used or when the \fBps\fR personality setting is BSD\-like.
|
are used or when the \fBps\fR personality setting is BSD\-like.
|
||||||
@ -223,8 +214,7 @@ An alternate description is that this option causes \fBps\fR to
|
|||||||
list all processes owned by you (same EUID as \fBps\fR),
|
list all processes owned by you (same EUID as \fBps\fR),
|
||||||
or to list all processes when used together with the \fBa\fR option.
|
or to list all processes when used together with the \fBa\fR option.
|
||||||
|
|
||||||
.TP
|
.opt \-\-deselect
|
||||||
.B \-\-deselect
|
|
||||||
Select all processes except those that fulfill the specified conditions.
|
Select all processes except those that fulfill the specified conditions.
|
||||||
(negates the selection) Identical to \fB\-N\fR.
|
(negates the selection) Identical to \fB\-N\fR.
|
||||||
|
|
||||||
@ -236,23 +226,20 @@ These options accept a single argument in the form of a blank\-separated
|
|||||||
or comma\-separated list. They can be used multiple times.
|
or comma\-separated list. They can be used multiple times.
|
||||||
For\ example:\ \fBps\ \-p\ "1\ 2"\ \-p\ 3,4\fR
|
For\ example:\ \fBps\ \-p\ "1\ 2"\ \-p\ 3,4\fR
|
||||||
.P
|
.P
|
||||||
.TP \n[OptSize]
|
.opt \-C \ cmdlist
|
||||||
.BI \-C \ cmdlist
|
|
||||||
Select by command name.
|
Select by command name.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose executable name is given in
|
This selects the processes whose executable name is given in
|
||||||
\fIcmdlist\fR.
|
\fIcmdlist\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-G \ grplist
|
||||||
.BI \-G \ grplist
|
|
||||||
Select by real group ID (RGID) or name.
|
Select by real group ID (RGID) or name.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose real group name or ID is in the
|
This selects the processes whose real group name or ID is in the
|
||||||
\fIgrplist\fR list. The real group ID identifies the group of the user
|
\fIgrplist\fR list. The real group ID identifies the group of the user
|
||||||
who created the process, see \fIgetgid\fR(2).
|
who created the process, see \fIgetgid\fR(2).
|
||||||
|
|
||||||
.TP
|
.opt U \ userlist
|
||||||
.BI U \ userlist
|
|
||||||
Select by effective user ID (EUID) or name.
|
Select by effective user ID (EUID) or name.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose effective user name
|
This selects the processes whose effective user name
|
||||||
@ -262,8 +249,7 @@ access permissions are used by the process
|
|||||||
(see\ \fIgeteuid\fR(2)).
|
(see\ \fIgeteuid\fR(2)).
|
||||||
Identical to \fB\-u\fR and\ \fB\-\-user\fR.
|
Identical to \fB\-u\fR and\ \fB\-\-user\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-U \ userlist
|
||||||
.BI \-U \ userlist
|
|
||||||
select by real user ID (RUID) or name.
|
select by real user ID (RUID) or name.
|
||||||
.br
|
.br
|
||||||
It selects the processes whose real user name or ID is in the
|
It selects the processes whose real user name or ID is in the
|
||||||
@ -271,8 +257,7 @@ It selects the processes whose real user name or ID is in the
|
|||||||
The real user ID identifies the user who created the process,
|
The real user ID identifies the user who created the process,
|
||||||
see\ \fIgetuid\fR(2).
|
see\ \fIgetuid\fR(2).
|
||||||
|
|
||||||
.TP
|
.opt \-g \ grplist
|
||||||
.BI \-g \ grplist
|
|
||||||
Select by session OR by effective group name.
|
Select by session OR by effective group name.
|
||||||
.br
|
.br
|
||||||
Selection by session is specified by many standards,
|
Selection by session is specified by many standards,
|
||||||
@ -283,34 +268,29 @@ is completely numeric (as\ sessions\ are).
|
|||||||
Group ID numbers will work only when some group names are also specified.
|
Group ID numbers will work only when some group names are also specified.
|
||||||
See the \fB\-s\fR and \fB\-\-group\fR options.
|
See the \fB\-s\fR and \fB\-\-group\fR options.
|
||||||
|
|
||||||
.TP
|
.opt p \ pidlist
|
||||||
.BI p \ pidlist
|
|
||||||
Select by process ID. Identical to \fB\-p\fR and\ \fB\-\-pid\fR.
|
Select by process ID. Identical to \fB\-p\fR and\ \fB\-\-pid\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-p \ pidlist
|
||||||
.BI \-p \ pidlist
|
|
||||||
Select by PID.
|
Select by PID.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose process ID numbers appear in
|
This selects the processes whose process ID numbers appear in
|
||||||
\fIpidlist\fR. Identical to \fBp\fR and\ \fB\-\-pid\fR.
|
\fIpidlist\fR. Identical to \fBp\fR and\ \fB\-\-pid\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-s \ sesslist
|
||||||
.BI \-s \ sesslist
|
|
||||||
Select by session ID.
|
Select by session ID.
|
||||||
.br
|
.br
|
||||||
This selects the processes
|
This selects the processes
|
||||||
with a session ID specified in\ \fIsesslist\fR.
|
with a session ID specified in\ \fIsesslist\fR.
|
||||||
|
|
||||||
.TP
|
.opt t \ ttylist
|
||||||
.BI t \ ttylist
|
|
||||||
Select by tty. Nearly identical to \fB\-t\fR and \fB\-\-tty\fR,
|
Select by tty. Nearly identical to \fB\-t\fR and \fB\-\-tty\fR,
|
||||||
but can also be used with an empty \fIttylist\fR to indicate
|
but can also be used with an empty \fIttylist\fR to indicate
|
||||||
the terminal associated with \fBps\fR.
|
the terminal associated with \fBps\fR.
|
||||||
Using the \fBT\fR option is considered cleaner than using \fBT\fR with
|
Using the \fBT\fR option is considered cleaner than using \fBT\fR with
|
||||||
an\ empty\ \fIttylist\fR.
|
an\ empty\ \fIttylist\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-t \ ttylist
|
||||||
.BI \-t \ ttylist
|
|
||||||
Select by tty.
|
Select by tty.
|
||||||
.br
|
.br
|
||||||
This selects the processes associated with the terminals
|
This selects the processes associated with the terminals
|
||||||
@ -319,8 +299,7 @@ Terminals (ttys, or screens for text output) can be specified in several
|
|||||||
forms: /dev/ttyS1, ttyS1, S1.
|
forms: /dev/ttyS1, ttyS1, S1.
|
||||||
A\ plain "\-" may be used to select processes not attached to any terminal.
|
A\ plain "\-" may be used to select processes not attached to any terminal.
|
||||||
|
|
||||||
.TP
|
.opt \-u \ userlist
|
||||||
.BI \-u \ userlist
|
|
||||||
Select by effective user ID (EUID) or name.
|
Select by effective user ID (EUID) or name.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose effective user name or ID is in
|
This selects the processes whose effective user name or ID is in
|
||||||
@ -328,16 +307,13 @@ This selects the processes whose effective user name or ID is in
|
|||||||
access permissions are used by the process (see\ \fIgeteuid\fR(2)).
|
access permissions are used by the process (see\ \fIgeteuid\fR(2)).
|
||||||
Identical to \fBU\fR and \fB\-\-user\fR.
|
Identical to \fBU\fR and \fB\-\-user\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-Group \ grplist
|
||||||
.BI \-\-Group \ grplist
|
|
||||||
Select by real group ID (RGID) or name. Identical to \fB\-G\fR.
|
Select by real group ID (RGID) or name. Identical to \fB\-G\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-User \ userlist
|
||||||
.BI \-\-User \ userlist
|
|
||||||
Select by real user ID (RUID) or name. Identical to \fB\-U\fR.
|
Select by real user ID (RUID) or name. Identical to \fB\-U\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-group \ grplist
|
||||||
.BI \-\-group \ grplist
|
|
||||||
Select by effective group ID (EGID) or name.
|
Select by effective group ID (EGID) or name.
|
||||||
.br
|
.br
|
||||||
This selects the processes whose effective group name or ID is in
|
This selects the processes whose effective group name or ID is in
|
||||||
@ -345,37 +321,30 @@ This selects the processes whose effective group name or ID is in
|
|||||||
access permissions are used by the process (see\ \fIgeteuid\fR(2)).
|
access permissions are used by the process (see\ \fIgeteuid\fR(2)).
|
||||||
The \fB\-g\fR option is often an alternative to\ \fB\-\-group\fR.
|
The \fB\-g\fR option is often an alternative to\ \fB\-\-group\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-pid \ pidlist
|
||||||
.BI \-\-pid \ pidlist
|
|
||||||
Select by process\ ID. Identical to \fB\-p\fR\ and\ \fBp\fR.
|
Select by process\ ID. Identical to \fB\-p\fR\ and\ \fBp\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-ppid \ pidlist
|
||||||
.BI \-\-ppid \ pidlist
|
|
||||||
Select by parent process\ ID.
|
Select by parent process\ ID.
|
||||||
This selects the processes
|
This selects the processes
|
||||||
with a parent\ process\ ID in \fRpidlist\fR.
|
with a parent\ process\ ID in \fRpidlist\fR.
|
||||||
That\ is, it selects processes that are children
|
That\ is, it selects processes that are children
|
||||||
of those listed in \fRpidlist\fR.
|
of those listed in \fRpidlist\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-sid \ sesslist
|
||||||
.BI \-\-sid \ sesslist
|
|
||||||
Select by session\ ID. Identical to\ \fB\-s\fR.
|
Select by session\ ID. Identical to\ \fB\-s\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-tty \ ttylist
|
||||||
.BI \-\-tty \ ttylist
|
|
||||||
Select by terminal. Identical to \fB\-t\fR and\ \fBt\fR.
|
Select by terminal. Identical to \fB\-t\fR and\ \fBt\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-user \ userlist
|
||||||
.BI \-\-user \ userlist
|
|
||||||
Select by effective user ID (EUID) or name.
|
Select by effective user ID (EUID) or name.
|
||||||
Identical to \fB\-u\fR and\ \fBU\fR.
|
Identical to \fB\-u\fR and\ \fBU\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\fI123\fR
|
||||||
\fB\-\fI123\fR
|
|
||||||
Identical to \fB\-\-sid\ \fI123\fR.
|
Identical to \fB\-\-sid\ \fI123\fR.
|
||||||
|
|
||||||
.TP
|
.opt \fI123\fR
|
||||||
.B \fI123\fR
|
|
||||||
Identical to \fB\-\-pid\ \fI123\fR.
|
Identical to \fB\-\-pid\ \fI123\fR.
|
||||||
|
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -386,18 +355,15 @@ These options are used to choose the information displayed by \fBps\fR.
|
|||||||
The output may differ by personality.
|
The output may differ by personality.
|
||||||
.PP
|
.PP
|
||||||
|
|
||||||
.TP \n[OptSize]
|
.opt \-F
|
||||||
.B \-F
|
|
||||||
extra full format. See the \fB\-f\fR option, which \fB\-F\fR implies.
|
extra full format. See the \fB\-f\fR option, which \fB\-F\fR implies.
|
||||||
|
|
||||||
.TP
|
.opt \-O \ format
|
||||||
.BI \-O \ format
|
|
||||||
is like \fB\-o\fR, but preloaded with some default columns.
|
is like \fB\-o\fR, but preloaded with some default columns.
|
||||||
Identical to \fB\-o\ pid,\fIformat\fB,state,tname,time,command\fR
|
Identical to \fB\-o\ pid,\fIformat\fB,state,tname,time,command\fR
|
||||||
or \fB\-o\ pid,\fIformat\fB,tname,time,cmd\fR, see\ \fB\-o\fR\ below.
|
or \fB\-o\ pid,\fIformat\fB,tname,time,cmd\fR, see\ \fB\-o\fR\ below.
|
||||||
|
|
||||||
.TP
|
.opt O \ format
|
||||||
.BI O \ format
|
|
||||||
is preloaded \fBo\fR (overloaded).
|
is preloaded \fBo\fR (overloaded).
|
||||||
.br
|
.br
|
||||||
The BSD \fBO\fR option can act like \fB\-O\fR (user\-defined output
|
The BSD \fBO\fR option can act like \fB\-O\fR (user\-defined output
|
||||||
@ -409,24 +375,19 @@ formatting), specify the option in some other way
|
|||||||
When used as a formatting option, it is identical to \fB\-O\fR, with the
|
When used as a formatting option, it is identical to \fB\-O\fR, with the
|
||||||
BSD\ personality.
|
BSD\ personality.
|
||||||
|
|
||||||
.TP
|
.opt \-M
|
||||||
.B \-M
|
|
||||||
Add a column of security data. Identical to \fBZ\fR. (for\ SE\ Linux)
|
Add a column of security data. Identical to \fBZ\fR. (for\ SE\ Linux)
|
||||||
|
|
||||||
.TP
|
.opt X
|
||||||
.B X
|
|
||||||
Register format.
|
Register format.
|
||||||
|
|
||||||
.TP
|
.opt Z
|
||||||
.B Z
|
|
||||||
Add a column of security data. Identical to \fB\-M\fR. (for\ SE\ Linux)
|
Add a column of security data. Identical to \fB\-M\fR. (for\ SE\ Linux)
|
||||||
|
|
||||||
.TP
|
.opt \-c
|
||||||
.B \-c
|
|
||||||
Show different scheduler information for the \fB\-l\fR option.
|
Show different scheduler information for the \fB\-l\fR option.
|
||||||
|
|
||||||
.TP
|
.opt \-f
|
||||||
.B \-f
|
|
||||||
does full\-format listing. This option can be combined with many
|
does full\-format listing. This option can be combined with many
|
||||||
other UNIX\-style options to add additional columns. It also causes
|
other UNIX\-style options to add additional columns. It also causes
|
||||||
the command arguments to be printed. When used with \fB\-L\fR, the
|
the command arguments to be printed. When used with \fB\-L\fR, the
|
||||||
@ -434,29 +395,23 @@ NLWP (number of threads) and LWP (thread ID) columns will be added.
|
|||||||
See the \fBc\fR option, the format keyword \fBargs\fR, and the
|
See the \fBc\fR option, the format keyword \fBargs\fR, and the
|
||||||
format keyword \fBcomm\fR.
|
format keyword \fBcomm\fR.
|
||||||
|
|
||||||
.TP
|
.opt j
|
||||||
.B j
|
|
||||||
BSD job control format.
|
BSD job control format.
|
||||||
|
|
||||||
.TP
|
.opt \-j
|
||||||
.B \-j
|
|
||||||
jobs format
|
jobs format
|
||||||
|
|
||||||
.TP
|
.opt l
|
||||||
.B l
|
|
||||||
display BSD long format.
|
display BSD long format.
|
||||||
|
|
||||||
.TP
|
.opt \-l
|
||||||
.B \-l
|
|
||||||
long format. The \fB\-y\fR option is often useful with this.
|
long format. The \fB\-y\fR option is often useful with this.
|
||||||
|
|
||||||
.TP
|
.opt o \ format
|
||||||
.BI o \ format
|
|
||||||
specify user\-defined format. Identical to \fB\-o\fR and
|
specify user\-defined format. Identical to \fB\-o\fR and
|
||||||
\fB\-\-format\fR.
|
\fB\-\-format\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-o \ format
|
||||||
.BI \-o \ format
|
|
||||||
user\-defined format.
|
user\-defined format.
|
||||||
.br
|
.br
|
||||||
\fIformat\fR is a single argument in the form of a
|
\fIformat\fR is a single argument in the form of a
|
||||||
@ -478,29 +433,23 @@ Use the \fBPS_FORMAT\fR environment variable to specify a default
|
|||||||
as desired; DefSysV and DefBSD are macros that may be used to
|
as desired; DefSysV and DefBSD are macros that may be used to
|
||||||
choose the default UNIX or BSD columns.
|
choose the default UNIX or BSD columns.
|
||||||
|
|
||||||
.TP
|
.opt s
|
||||||
.B s
|
|
||||||
display signal format
|
display signal format
|
||||||
|
|
||||||
.TP
|
.opt u
|
||||||
.B u
|
|
||||||
display user\-oriented format
|
display user\-oriented format
|
||||||
|
|
||||||
.TP
|
.opt v
|
||||||
.B v
|
|
||||||
display virtual memory format
|
display virtual memory format
|
||||||
|
|
||||||
.TP
|
.opt \-y
|
||||||
.B \-y
|
|
||||||
Do not show flags; show rss in place of addr.
|
Do not show flags; show rss in place of addr.
|
||||||
This option can only be used with \fB\-l\fR.
|
This option can only be used with \fB\-l\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-format \ format
|
||||||
.BI \-\-format \ format
|
|
||||||
user\-defined format. Identical to \fB\-o\fR and \fBo\fR.
|
user\-defined format. Identical to \fB\-o\fR and \fBo\fR.
|
||||||
|
|
||||||
.TP
|
.opt \-\-context
|
||||||
.B \-\-context
|
|
||||||
Display security context format. (for\ SE\ Linux)
|
Display security context format. (for\ SE\ Linux)
|
||||||
|
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -512,16 +461,13 @@ Display security context format. (for\ SE\ Linux)
|
|||||||
.\" .B C
|
.\" .B C
|
||||||
.\" use raw CPU time for %CPU instead of decaying average
|
.\" use raw CPU time for %CPU instead of decaying average
|
||||||
|
|
||||||
.TP \n[OptSize]
|
.opt \-H
|
||||||
.B \-H
|
|
||||||
show process hierarchy (forest)
|
show process hierarchy (forest)
|
||||||
|
|
||||||
.TP
|
.opt N \ namelist
|
||||||
.BI N \ namelist
|
|
||||||
Specify namelist file. Identical to \fB\-n\fR, see \fB\-n\fR above.
|
Specify namelist file. Identical to \fB\-n\fR, see \fB\-n\fR above.
|
||||||
|
|
||||||
.TP
|
.opt O \ order
|
||||||
.BI O \ order
|
|
||||||
Sorting order. (overloaded)
|
Sorting order. (overloaded)
|
||||||
.br
|
.br
|
||||||
The BSD \fBO\fR option can act like \fB\-O\fR (user\-defined output
|
The BSD \fBO\fR option can act like \fB\-O\fR (user\-defined output
|
||||||
@ -541,14 +487,12 @@ merely re\-iterating the default direction on a key,
|
|||||||
but may help to distinguish an \fBO\fR sort from an \fBO\fR format.
|
but may help to distinguish an \fBO\fR sort from an \fBO\fR format.
|
||||||
The\ "\-" reverses direction only on the key it precedes.
|
The\ "\-" reverses direction only on the key it precedes.
|
||||||
|
|
||||||
.TP
|
.opt S
|
||||||
.B S
|
|
||||||
Sum up some information, such as CPU usage, from dead child processes
|
Sum up some information, such as CPU usage, from dead child processes
|
||||||
into their parent. This is useful for examining a system where a
|
into their parent. This is useful for examining a system where a
|
||||||
parent process repeatedly forks off short\-lived children to do work.
|
parent process repeatedly forks off short\-lived children to do work.
|
||||||
|
|
||||||
.TP
|
.opt c
|
||||||
.B c
|
|
||||||
Show the true command name. This is derived from the name of the
|
Show the true command name. This is derived from the name of the
|
||||||
executable file, rather than from the argv value. Command arguments
|
executable file, rather than from the argv value. Command arguments
|
||||||
and any modifications to them (see\ \fIsetproctitle\fR(3)) are
|
and any modifications to them (see\ \fIsetproctitle\fR(3)) are
|
||||||
@ -560,16 +504,13 @@ display the command arguments.
|
|||||||
See the \fB\-f\fR option, the format keyword \fBargs\fR, and the
|
See the \fB\-f\fR option, the format keyword \fBargs\fR, and the
|
||||||
format keyword \fBcomm\fR.
|
format keyword \fBcomm\fR.
|
||||||
|
|
||||||
.TP
|
.opt e
|
||||||
.B e
|
|
||||||
Show the environment after the command.
|
Show the environment after the command.
|
||||||
|
|
||||||
.TP
|
.opt f
|
||||||
.B f
|
|
||||||
ASCII\-art process hierarchy (forest)
|
ASCII\-art process hierarchy (forest)
|
||||||
|
|
||||||
.TP
|
.opt h
|
||||||
.B h
|
|
||||||
No header. (or, one header per screen in the BSD personality)
|
No header. (or, one header per screen in the BSD personality)
|
||||||
.br
|
.br
|
||||||
The \fBh\fR option is problematic. Standard BSD \fBps\fR uses
|
The \fBh\fR option is problematic. Standard BSD \fBps\fR uses
|
||||||
@ -582,8 +523,7 @@ current personality, you can use the long options \fB\-\-headers\fR
|
|||||||
and \fB\-\-no\-headers\fR to enable printing headers each page or
|
and \fB\-\-no\-headers\fR to enable printing headers each page or
|
||||||
disable headers entirely, respectively.
|
disable headers entirely, respectively.
|
||||||
|
|
||||||
.TP
|
.opt k \ spec
|
||||||
.BI k \ spec
|
|
||||||
specify sorting order. Sorting syntax is
|
specify sorting order. Sorting syntax is
|
||||||
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]]
|
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]]
|
||||||
Choose a multi\-letter key from the \fBSTANDARD FORMAT SPECIFIERS\fR section.
|
Choose a multi\-letter key from the \fBSTANDARD FORMAT SPECIFIERS\fR section.
|
||||||
@ -596,8 +536,7 @@ lexicographic order. Identical to \fB\-\-sort\fR. Examples:
|
|||||||
.br
|
.br
|
||||||
\fBps\ kstart_time\ \-ef\fR
|
\fBps\ kstart_time\ \-ef\fR
|
||||||
|
|
||||||
.TP
|
.opt \-n \ namelist
|
||||||
.BI \-n \ namelist
|
|
||||||
set namelist file. Identical to \fBN\fR.
|
set namelist file. Identical to \fBN\fR.
|
||||||
.br
|
.br
|
||||||
The namelist file is needed for a proper WCHAN display, and must match
|
The namelist file is needed for a proper WCHAN display, and must match
|
||||||
@ -620,52 +559,40 @@ Without this option, the default search path for the namelist is:
|
|||||||
.br
|
.br
|
||||||
/System.map
|
/System.map
|
||||||
|
|
||||||
.TP
|
.opt n
|
||||||
.B n
|
|
||||||
Numeric output for WCHAN and USER. (including all types of UID and GID)
|
Numeric output for WCHAN and USER. (including all types of UID and GID)
|
||||||
|
|
||||||
.TP
|
.opt \-w
|
||||||
.B \-w
|
|
||||||
Wide output. Use this option twice for unlimited width.
|
Wide output. Use this option twice for unlimited width.
|
||||||
|
|
||||||
.TP
|
.opt w
|
||||||
.B w
|
|
||||||
Wide output. Use this option twice for unlimited width.
|
Wide output. Use this option twice for unlimited width.
|
||||||
|
|
||||||
.TP
|
.opt \-\-cols \ n
|
||||||
.BI \-\-cols \ n
|
|
||||||
set screen width
|
set screen width
|
||||||
|
|
||||||
.TP
|
.opt \-\-columns \ n
|
||||||
.BI \-\-columns \ n
|
|
||||||
set screen width
|
set screen width
|
||||||
|
|
||||||
.TP
|
.opt \-\-cumulative
|
||||||
.B \-\-cumulative
|
|
||||||
include some dead child process data (as a sum with the parent)
|
include some dead child process data (as a sum with the parent)
|
||||||
|
|
||||||
.TP
|
.opt \-\-forest
|
||||||
.B \-\-forest
|
|
||||||
ASCII art process tree
|
ASCII art process tree
|
||||||
|
|
||||||
.TP
|
.opt \-\-headers
|
||||||
.B \-\-headers
|
|
||||||
repeat header lines, one per page of output
|
repeat header lines, one per page of output
|
||||||
|
|
||||||
.TP
|
.opt \-\-no\-headers
|
||||||
.B \-\-no\-headers
|
|
||||||
print no header line at all
|
print no header line at all
|
||||||
|
|
||||||
.TP
|
.opt \-\-lines \ n
|
||||||
.BI \-\-lines \ n
|
|
||||||
set screen height
|
set screen height
|
||||||
|
|
||||||
.TP
|
.opt \-\-rows \ n
|
||||||
.BI \-\-rows \ n
|
|
||||||
set screen height
|
set screen height
|
||||||
|
|
||||||
.TP
|
.opt \-\-sort \ spec
|
||||||
.BI \-\-sort \ spec
|
|
||||||
specify sorting order. Sorting syntax is
|
specify sorting order. Sorting syntax is
|
||||||
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]]
|
[\fB+\fR|\fB\-\fR]\fIkey\fR[,[\fB+\fR|\fB\-\fR]\fIkey\fR[,...]]
|
||||||
Choose a multi\-letter key from the \fBSTANDARD FORMAT SPECIFIERS\fR section.
|
Choose a multi\-letter key from the \fBSTANDARD FORMAT SPECIFIERS\fR section.
|
||||||
@ -673,8 +600,7 @@ The\ "+" is optional since default direction is increasing numerical or
|
|||||||
lexicographic order. Identical to\ \fBk\fR.
|
lexicographic order. Identical to\ \fBk\fR.
|
||||||
For example: \fBps\ jax\ \-\-sort=uid,\-ppid,+pid\fR
|
For example: \fBps\ jax\ \-\-sort=uid,\-ppid,+pid\fR
|
||||||
|
|
||||||
.TP
|
.opt \-\-width \ n
|
||||||
.BI \-\-width \ n
|
|
||||||
set screen width
|
set screen width
|
||||||
|
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -683,24 +609,19 @@ set screen width
|
|||||||
.SH "THREAD DISPLAY"
|
.SH "THREAD DISPLAY"
|
||||||
.PD 0
|
.PD 0
|
||||||
|
|
||||||
.TP \n[OptSize]
|
.opt H
|
||||||
.B H
|
|
||||||
Show threads as if they were processes
|
Show threads as if they were processes
|
||||||
|
|
||||||
.TP
|
.opt \-L
|
||||||
.B \-L
|
|
||||||
Show threads, possibly with LWP and NLWP columns
|
Show threads, possibly with LWP and NLWP columns
|
||||||
|
|
||||||
.TP
|
.opt \-T
|
||||||
.B \-T
|
|
||||||
Show threads, possibly with SPID column
|
Show threads, possibly with SPID column
|
||||||
|
|
||||||
.TP
|
.opt m
|
||||||
.B m
|
|
||||||
Show threads after processes
|
Show threads after processes
|
||||||
|
|
||||||
.TP
|
.opt \-m
|
||||||
.B \-m
|
|
||||||
Show threads after processes
|
Show threads after processes
|
||||||
|
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -709,28 +630,22 @@ Show threads after processes
|
|||||||
.SH "OTHER INFORMATION"
|
.SH "OTHER INFORMATION"
|
||||||
.PD 0
|
.PD 0
|
||||||
|
|
||||||
.TP \n[OptSize]
|
.opt L
|
||||||
.B L
|
|
||||||
List all format specifiers.
|
List all format specifiers.
|
||||||
|
|
||||||
.TP
|
.opt \-V
|
||||||
.B \-V
|
|
||||||
Print the procps version.
|
Print the procps version.
|
||||||
|
|
||||||
.TP
|
.opt V
|
||||||
.B V
|
|
||||||
Print the procps version.
|
Print the procps version.
|
||||||
|
|
||||||
.TP
|
.opt \-\-help
|
||||||
.B \-\-help
|
|
||||||
Print a help message.
|
Print a help message.
|
||||||
|
|
||||||
.TP
|
.opt \-\-info
|
||||||
.B \-\-info
|
|
||||||
Print debugging info.
|
Print debugging info.
|
||||||
|
|
||||||
.TP
|
.opt \-\-version
|
||||||
.B \-\-version
|
|
||||||
Print the procps version.
|
Print the procps version.
|
||||||
|
|
||||||
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
.\" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
Loading…
Reference in New Issue
Block a user