ps: Document -P option

The -P option for ps has been in there for decades but neither the
man page nor the help option explained what it did.

Amazing what crops up even now!

References:
 https://unix.stackexchange.com/questions/701422/what-does-p-mean-in-the-context-of-the-ps-command
This commit is contained in:
Craig Small 2022-05-11 17:34:12 +10:00
parent 6e78355d4d
commit 19c65159a9
2 changed files with 5 additions and 1 deletions

View File

@ -139,6 +139,7 @@ void do_help (const char *opt, int rc) {
fputs(_(" O <format> as -O, with BSD personality\n"), out);
fputs(_(" -o, o, --format <format>\n"
" user-defined format\n"), out);
fputs(_(" -P add psr column\n"), out);
fputs(_(" s signal format\n"), out);
fputs(_(" u user-oriented format\n"), out);
fputs(_(" v virtual memory format\n"), out);

View File

@ -4,7 +4,7 @@
.\" Quick hack conversion by Albert Cahalan, 1998.
.\" Licensed under version 2 of the Gnu General Public License.
.\"
.TH PS "1" "January 2022" "procps-ng" "User Commands"
.TH PS "1" "2022-05-11" "procps-ng" "User Commands"
.\"
.\" To render this page:
.\" groff -t -b -man -X -P-resolution -P100 -Tps ps.1 &
@ -539,6 +539,9 @@ options when in doubt. Use the
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 \-P
Add a column showing \fBpsr\fR.
.TP
.B s
Display signal format.
.TP