pgrep: Documentation fixes
Minor fixes to the help output and manpage of pgrep.
This commit is contained in:
parent
12ee64c8a3
commit
cff3960c4a
10
pgrep.1
10
pgrep.1
@ -14,7 +14,7 @@ pgrep, pkill \- look up or signal processes based on name and other attributes
|
|||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
.B pgrep
|
.B pgrep
|
||||||
looks through the currently running processes and lists the process IDs which
|
looks through the currently running processes and lists the process IDs which
|
||||||
matches the selection criteria to stdout. All the criteria have to match.
|
match the selection criteria to stdout. All the criteria have to match.
|
||||||
For example,
|
For example,
|
||||||
.IP
|
.IP
|
||||||
$ pgrep \-u root sshd
|
$ pgrep \-u root sshd
|
||||||
@ -116,12 +116,14 @@ Only match processes whose real user ID is listed. Either the numerical or
|
|||||||
symbolical value may be used.
|
symbolical value may be used.
|
||||||
.TP
|
.TP
|
||||||
\fB\-v\fR, \fB\-\-inverse\fR\fR
|
\fB\-v\fR, \fB\-\-inverse\fR\fR
|
||||||
Negates the matching. This option usually used in pgrep context. In
|
Negates the matching. This option is usually used in
|
||||||
.B pkill
|
.BR pgrep 's
|
||||||
|
context. In
|
||||||
|
.BR pkill 's
|
||||||
context the short option is disabled to avoid accidental usage of the option.
|
context the short option is disabled to avoid accidental usage of the option.
|
||||||
.TP
|
.TP
|
||||||
\fB\-x\fR, \fB\-\-exact\fR\fR
|
\fB\-x\fR, \fB\-\-exact\fR\fR
|
||||||
Only match processes whose name (or command line if \-f is specified)
|
Only match processes whose names (or command line if \-f is specified)
|
||||||
.B exactly
|
.B exactly
|
||||||
match the
|
match the
|
||||||
.IR pattern .
|
.IR pattern .
|
||||||
|
4
pgrep.c
4
pgrep.c
@ -110,12 +110,12 @@ static int __attribute__ ((__noreturn__)) usage(int opt)
|
|||||||
" -G, --group <gid,...> match real group IDs\n"
|
" -G, --group <gid,...> match real group IDs\n"
|
||||||
" -n, --newest select most recently started\n"
|
" -n, --newest select most recently started\n"
|
||||||
" -o, --oldest select least recently started\n"
|
" -o, --oldest select least recently started\n"
|
||||||
" -P, --parent <ppid,...> match only childs of given parent\n"
|
" -P, --parent <ppid,...> match only child processes of the given parent\n"
|
||||||
" -s, --session <sid,...> match session IDs\n"
|
" -s, --session <sid,...> match session IDs\n"
|
||||||
" -t, --terminal <tty,...> match by controlling terminal\n"
|
" -t, --terminal <tty,...> match by controlling terminal\n"
|
||||||
" -u, --euid <id,...> match by effective IDs\n"
|
" -u, --euid <id,...> match by effective IDs\n"
|
||||||
" -U, --uid <id,...> match by real IDs\n"
|
" -U, --uid <id,...> match by real IDs\n"
|
||||||
" -x, --exact match exectly with command name\n"
|
" -x, --exact match exactly with the command name\n"
|
||||||
" -F, --pidfile <file> read PIDs from file\n"
|
" -F, --pidfile <file> read PIDs from file\n"
|
||||||
" -L, --logpidfile fail if PID file is not locked\n"), fp);
|
" -L, --logpidfile fail if PID file is not locked\n"), fp);
|
||||||
fputs(USAGE_SEPARATOR, fp);
|
fputs(USAGE_SEPARATOR, fp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user