1.\" Copyright (c) 1980, 1990, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" the Institute of Electrical and Electronics Engineers, Inc. 6.\" 7.\" Redistribution and use in source and binary forms, with or without 8.\" modification, are permitted provided that the following conditions 9.\" are met: 10.\" 1. Redistributions of source code must retain the above copyright 11.\" notice, this list of conditions and the following disclaimer. 12.\" 2. Redistributions in binary form must reproduce the above copyright 13.\" notice, this list of conditions and the following disclaimer in the 14.\" documentation and/or other materials provided with the distribution. 15.\" 3. All advertising materials mentioning features or use of this software 16.\" must display the following acknowledgement: 17.\" This product includes software developed by the University of 18.\" California, Berkeley and its contributors. 19.\" 4. Neither the name of the University nor the names of its contributors 20.\" may be used to endorse or promote products derived from this software 21.\" without specific prior written permission. 22.\" 23.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 24.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 27.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33.\" SUCH DAMAGE. 34.\" 35.\" @(#)kill.1 8.2 (Berkeley) 4/28/95 36.\" 37.Dd April 28, 1995 38.Dt KILL 1 39.Os 40.Sh NAME 41.Nm kill 42.Nd terminate or signal a process 43.Sh SYNOPSIS 44.Nm kill 45.Op Fl s Ar signal_name 46.Ar pid 47\&... 48.Nm kill 49.Fl l 50.Op Ar exit_status 51.Nm kill 52.Fl signal_name 53.Ar pid 54\&... 55.Nm kill 56.Fl signal_number 57.Ar pid 58\&... 59.Sh DESCRIPTION 60The kill utility sends a signal to the processes specified 61by the pid operand(s). 62.Pp 63Only the super-user may send signals to other users' processes. 64.Pp 65The options are as follows: 66.Pp 67.Bl -tag -width Ds 68.It Fl s Ar signal_name 69A symbolic signal name specifying the signal to be sent instead of the 70default 71.Dv TERM . 72.It Fl l Op Ar exit_status 73If no operand is given, list the signal names; otherwise, write 74the signal name corresponding to 75.Ar exit_status . 76.It Fl signal_name 77A symbolic signal name specifying the signal to be sent instead of the 78default 79.Dv TERM . 80.It Fl signal_number 81A non-negative decimal integer, specifying the signal to be sent instead 82of the default 83.Dv TERM . 84.El 85.Pp 86The following pids have special meanings: 87.Bl -tag -width Ds -compact 88.It -1 89If superuser, broadcast the signal to all processes; otherwise broadcast 90to all processes belonging to the user. 91.El 92.Pp 93Some of the more commonly used signals: 94.Bl -tag -width Ds -compact 95.It 1 96HUP (hang up) 97.It 2 98INT (interrupt) 99.It 3 100QUIT (quit) 101.It 6 102ABRT (abort) 103.It 9 104KILL (non-catchable, non-ignorable kill) 105.It 14 106ALRM (alarm clock) 107.It 15 108TERM (software termination signal) 109.El 110.Pp 111.Nm Kill 112is a built-in to 113.Xr csh 1 ; 114it allows job specifiers of the form ``%...'' as arguments 115so process id's are not as often used as 116.Nm kill 117arguments. 118See 119.Xr csh 1 120for details. 121.Sh SEE ALSO 122.Xr csh 1 , 123.Xr ps 1 , 124.Xr kill 2 , 125.Xr sigvec 2 126.Sh STANDARDS 127The 128.Nm kill 129function is expected to be 130.St -p1003.2 131compatible. 132.Sh HISTORY 133A 134.Nm kill 135command appeared in 136.At v6 . 137.Sh BUGS 138A replacement for the command 139.Dq Li kill 0 140for 141.Xr csh 1 142users should be provided. 143