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.34 2005/01/17 07:44:20 ru Exp $
32 .Nd kill processes by name
45 utility kills processes selected by name, as opposed to the selection by pid
48 By default, it will send a
50 signal to all processes with a real UID identical to the
55 The super-user is allowed to kill any process.
57 The options are as follows:
58 .Bl -tag -width 10n -offset indent
60 Be more verbose about what will be done.
62 Use the effective user ID instead of the (default) real user ID for matching
63 processes specified with the
67 Give a help on the command usage and exit.
69 List the names of the available signals and exit, like in
74 as a (case sensitive) regular expression against the names
77 This is dangerous, a single dot will match any process
78 running under the real UID of the caller.
80 Show only what would be done, but do not send any signal.
82 Print detailed information about the processes matched,
83 but do not send any signal.
85 Send a different signal instead of the default
87 The signal may be specified either as a name
88 (with or without a leading
92 Limit potentially matching processes to those belonging to
96 Limit potentially matching processes to those running on
104 flags, limit potentially matching processes to those matching
109 This should not have any effect except to print a few error messages
110 if there are zombie processes that match the specified pattern.
113 Sending a signal to all processes with uid
115 is already supported by
119 for this job (e.g.\& $ kill -TERM -1 or
120 as root $ echo kill -TERM -1 | su -m <user>)
124 command will respond with a short usage message and exit with a status
125 of 2 in case of a command error.
126 A status of 1 will be returned if
127 either no matching process has been found or not all processes have
128 been signalled successfully.
129 Otherwise, a status of 0 will be
132 Diagnostic messages will only be printed if requested by
143 It has been modeled after the
145 command as available on other platforms.
150 program was originally written in Perl and was contributed by
151 .An Wolfram Schneider ,
152 this manual page has been written by
154 The current version of
156 was rewritten in C by