1 .\" Copyright (C) 1995 by Joerg Wunsch, Dresden
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS
14 .\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
22 .\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
32 .Nd kill processes by name
47 utility kills processes selected by name, as opposed to the selection by PID
50 By default, it will send a
52 signal to all processes with a real UID identical to the
57 The super-user is allowed to kill any process.
59 The options are as follows:
60 .Bl -tag -width ".Fl c Ar procname"
62 Be more verbose about what will be done.
65 option, a list of the processes that will be sent the signal will be
66 printed, or a message indicating that no matching processes have been
69 Use the effective user ID instead of the (default) real user ID for matching
70 processes specified with the
74 Give a help on the command usage and exit.
76 Request confirmation before attempting to signal each
79 List the names of the available signals and exit, like in
84 as a (case sensitive) regular expression against the names
87 This is dangerous, a single dot will match any process
88 running under the real UID of the caller.
90 Show only what would be done, but do not send any signal.
92 Send a different signal instead of the default
94 The signal may be specified either as a name
95 (with or without a leading
99 Kill processes in the specified
102 Limit potentially matching processes to those belonging to
106 Limit potentially matching processes to those running on
110 Limit potentially matching processes to those matching
114 Suppress error message if no processes are matched.
117 This should not have any effect except to print a few error messages
118 if there are zombie processes that match the specified pattern.
121 Sending a signal to all processes with the given UID
122 is already supported by
127 .Dq Li "kill -TERM -1"
129 .Dq Li "echo kill -TERM -1 | su -m <user>" ) .
130 .Sh IMPLEMENTATION NOTES
135 has completely different semantics as compared to the traditional
139 The latter will kill all processes that the current user is able to
140 kill, and is intended to be used by the system shutdown process only.
144 utility exits 0 if some processes have been found and
145 signalled successfully.
146 Otherwise, a status of 1 will be
149 Diagnostic messages will only be printed if requested by
162 It has been modeled after the
164 command as available on other platforms.
169 program was originally written in Perl and was contributed by
170 .An Wolfram Schneider ,
171 this manual page has been written by
173 The current version of
175 was rewritten in C by