diff options
author | gad <gad@FreeBSD.org> | 2004-03-17 22:46:58 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2004-03-17 22:46:58 +0000 |
commit | 5091cee4e6b00274b99c80c60ca89b1bd7f41e08 (patch) | |
tree | fb9de08362c8eb0e7bc9290227abffba878261f2 /bin/ps/ps.1 | |
parent | 436fe9bbc1dd12e4651d30356928ac1a8d427448 (diff) | |
download | FreeBSD-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.1 | 7 |
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 . |