diff options
author | Keith M Wesolowski <wesolows@foobazco.org> | 2014-01-20 17:13:50 +0000 |
---|---|---|
committer | Keith M Wesolowski <wesolows@foobazco.org> | 2014-01-20 17:13:50 +0000 |
commit | 4e69cb7aa2c1233ded1e31a1e1ae9acc4426a7c2 (patch) | |
tree | 48e0efe955902014efaeb0887364694321d99952 | |
parent | a1d65775c5aea118505e125398da1390a3e4bb48 (diff) | |
parent | c1ca8c1d77967585bfbe78133a7257e36ebfec85 (diff) | |
download | illumos-joyent-4e69cb7aa2c1233ded1e31a1e1ae9acc4426a7c2.tar.gz |
[illumos-gate merge]
commit c1ca8c1d77967585bfbe78133a7257e36ebfec85
3563 pgrep(1) -x description could be clearer
-rw-r--r-- | usr/src/man/man1/pgrep.1 | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/usr/src/man/man1/pgrep.1 b/usr/src/man/man1/pgrep.1 index f4ae7ffce1..9e65244f8d 100644 --- a/usr/src/man/man1/pgrep.1 +++ b/usr/src/man/man1/pgrep.1 @@ -3,7 +3,7 @@ .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH PGREP 1 "May 6, 2004" +.TH PGREP 1 "Jan 17, 2014" .SH NAME pgrep, pkill \- find or signal processes by name and other attributes .SH SYNOPSIS @@ -256,10 +256,28 @@ which meet the specified matching criteria. \fB\fB-x\fR\fR .ad .RS 17n -Considers only processes whose argument string or executable file name -\fBexactly\fR matches the specified \fIpattern\fR to be matching processes. The -pattern match is considered to be exact when all characters in the process -argument string or executable file name match the pattern. +Matches only processes whose executable file name (ignoring any path) +\fBexactly\fR matches the specified \fIpattern\fR. However, when used with -f, +the \fIpattern\fR should be matched against the full process argument +string. For example if there exists a process `/bin/ls /home' then: +.sp +.in +2 +.nf +$ pgrep -x ls +1780 +$ pgrep -x -f '/bin/ls /home' +1780 +$ pgrep -x -f '/bin/ls.*' +1780 +$ pgrep -x /bin/ls +$ pgrep -x -f 'ls /home' +$ pgrep -x -f /bin/ls +$ + +.fi +.in -2 +.sp + .RE .sp |