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.
25 .\" $FreeBSD: src/usr.bin/killall/killall.1,v 1.11.2.11 2003/02/25 20:31:18 trhodes Exp $
32 .Nd kill processes by name
51 utility kills processes selected by name, as opposed to the selection by pid
54 By default, it will send a
56 signal to all processes with a real UID identical to the
61 The super-user is allowed to kill any process.
63 The options are as follows:
64 .Bl -tag -width 10n -offset indent
66 Do not print an error message if no matching processes are found.
68 Be more verbose about what will be done. For a single
70 option, a list of the processes that will be sent the signal will be
71 printed, or a message indicating that no matching processes have been
74 Give a help on the command usage and exit.
76 List the names of the available signals and exit, like in
81 as a (case insensitive) regular expression against the names
83 CAUTION! This is dangerous, a single dot will match any process
84 running under the real UID of the caller.
86 Show only what would be done, but do not send any signal.
88 Send a different signal instead of the default
90 The signal may be specified either as a name
91 (with or without a leading
95 Limit potentially matching processes to those belonging to
99 Limit potentially matching processes to those running on
103 Kill all processes on the current tty except ourselves or
104 processes which parent us.
106 Limit potentially matching processes to those running in the jail with id
113 flags, limit potentially matching processes to those matching
118 Sending a signal to all processes with uid
120 is already supported by
124 for this job (e.g. $ kill -TERM -1 or
125 as root $ echo kill -TERM -1 | su -m <user>)
129 command will respond with a short usage message and exit with a status
130 of 2 in case of a command error. A status of 1 will be returned if
131 either no matching process has been found or not all processes have
132 been signalled successfully. Otherwise, a status of 0 will be
135 Diagnostic messages will only be printed if requested by
147 It has been modeled after the
149 command as available on other platforms.
154 program was originally written in Perl and was contributed by
155 .An Wolfram Schneider ,
156 this manual page has been written by
158 The current version of
160 was rewritten in C by