summaryrefslogtreecommitdiffstats
path: root/bin/ps/ps.1
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2004-03-17 22:46:58 +0000
committergad <gad@FreeBSD.org>2004-03-17 22:46:58 +0000
commit5091cee4e6b00274b99c80c60ca89b1bd7f41e08 (patch)
treefb9de08362c8eb0e7bc9290227abffba878261f2 /bin/ps/ps.1
parent436fe9bbc1dd12e4651d30356928ac1a8d427448 (diff)
downloadFreeBSD-src-5091cee4e6b00274b99c80c60ca89b1bd7f41e08.zip
FreeBSD-src-5091cee4e6b00274b99c80c60ca89b1bd7f41e08.tar.gz
Improvements to 'ps -p <x>'. If <x> is a process id that does not exist, then
just print the header (if any) and exit, thus matching the behavior on -stable and other OS's. Also adds support for <x> being a comma-separated list of processes, and does a much better checking for invalid-values of <x>, such as 'ps -p someword'. Reviewed by: mentioned on freebsd-current MFC after: 10 days
Diffstat (limited to 'bin/ps/ps.1')
-rw-r--r--bin/ps/ps.17
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ps/ps.1 b/bin/ps/ps.1
index 8b552cc..a6bd751 100644
--- a/bin/ps/ps.1
+++ b/bin/ps/ps.1
@@ -45,7 +45,10 @@
.Op Fl N Ar system
.Op Fl O Ar fmt
.Op Fl o Ar fmt
-.Op Fl p Ar pid
+.Oo Fl p Ar pid Ns Xo
+.Op , Ns Ar pid Ns No ...
+.Xc
+.Oc
.Op Fl t Ar tty
.Oo Fl U Ar username Ns Xo
.Op , Ns Ar username Ns No ...
@@ -146,7 +149,7 @@ This causes the printed header to use the specified string instead of
the standard header.
.It Fl p
Display information associated with the specified process
-.Tn ID .
+.Tn ID(s) .
.It Fl r
Sort by current cpu usage, instead of by process
.Tn ID .
OpenPOWER on IntegriCloud