1 .\" $NetBSD: pkill.1,v 1.17 2009/02/28 18:16:10 christos Exp $
3 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd find or signal processes by name
62 command searches the process table on the running system and prints the
63 process IDs of all processes that match the criteria given on the command
68 command searches the process table on the running system and signals all
69 processes that match the criteria given on the command line.
71 The following options are available:
72 .Bl -tag -width xxxxxxxx
74 Specify a delimiter to be printed between each process ID.
75 The default is a newline.
76 This option can only be used with the
80 Match against full argument lists.
81 The default is to match against process names.
83 Restrict matches to processes with a real group ID in the comma-separated
87 Restrict matches to processes with a process group ID in the comma-separated
90 The value zero is taken to mean the process group ID of the running
96 Ignore case distinctions in both the process table and the supplied pattern.
99 Print the process name in addition to the process ID for each matching
101 If used in conjunction with
103 print the process ID and the full argument list for each matching process.
105 Match only the most recently created process, if any.
107 Restrict matches to processes with a parent process ID in the
111 Restrict matches to processes with a session ID in the comma-separated
114 The value zero is taken to mean the session ID of the running
120 Restrict matches to processes associated with a terminal in the
123 Terminal names may be specified as a fully qualified path, in the form
129 is any pair of letters, and
132 or the shortened forms
138 matches processes not associated with a terminal.
140 Restrict matches to processes with a real user ID in the comma-separated
144 Restrict matches to processes with an effective user ID in the
148 Reverse the sense of the matching; display processes that do not match the
151 Require an exact match of the process name, or argument list if
154 The default is to match any substring.
156 A non-negative decimal number or symbolic signal name specifying the signal
157 to be sent instead of the default TERM.
158 This option is valid only when given as the first argument to
166 process will never consider itself or system processes (kernel threads) as
172 return one of the following values upon exit:
175 One or more processes were matched.
177 No processes were matched.
179 Invalid options were specified on the command line.
181 An internal error occurred.
197 They are modelled after utilities of the same name that appeared in Sun