.\" .\" Sccsid @(#)kill.1 1.2 (gritter) 6/30/05 .\" Derived from kill(1), Unix 7th edition: .\" Copyright(C) Caldera International Inc. 2001-2002. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" Redistributions of source code and documentation must retain the .\" above copyright notice, this list of conditions and the following .\" disclaimer. .\" Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" All advertising materials mentioning features or use of this software .\" must display the following acknowledgement: .\" This product includes software developed or owned by Caldera .\" International, Inc. .\" Neither the name of Caldera International, Inc. nor the names of .\" other contributors may be used to endorse or promote products .\" derived from this software without specific prior written permission. .\" .\" USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA .\" INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE .\" LIABLE FOR ANY DIRECT, INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .TH KILL 1 "6/30/05" "Heirloom Toolchest" "User Commands" .SH NAME kill \- terminate a process .SH SYNOPSIS \fBkill\fR [\fB\-\fIsignal\fR|\fB\-s\ \fIsignal\fR] \fIprocessid\fR ... .br \fBkill\fR \fB\-l\fR [\fIstatus\fR] .SH DESCRIPTION .I Kill sends signal 15 (terminate) to the specified processes. If a signal number or symbolic signal name preceded by `\-' or .B \-s is given as first argument, that signal is sent instead of terminate (see .IR signal (2)). This will kill processes that do not catch the signal; in particular `kill \-9 ...' is a sure kill. .PP By convention, if process number 0 is specified, all members in the process group (i.e. processes resulting from the current login) are signaled. If process number \-1 is specified, all processes for which the user is permitted to send a signal are signaled. Otherwise if the process number is negative, it is treated as a process group id, and all processes in that group are signaled. .PP With the .B \-l option, all available symbolic signal names are listed. If the .I status argument is present, the symbolic signal name corresponding to .IR status , interpreted either as a signal number or as an exit value as given by the `$?' shell parameter, is printed. .PP A symbolic signal name consists of the name of the signal in the `C' language without the `SIG' prefix, e.\|g. `QUIT' for `SIGQUIT'. .PP The killed processes must belong to the current user unless he is the super-user. .PP The process number of an asynchronous process started with `&' is reported by the shell. Process numbers can also be found by using .IR ps (1). .SH "SEE ALSO" ps(1), kill(2), signal(2)