4.3BSD-Reno/src/bin/kill/kill.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1980, 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted provided
.\" that: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" Neither the name of the University nor the names of its contributors may
.\" be used to endorse or promote products derived from this software without
.\" specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"     @(#)kill.1	6.4 (Berkeley) 7/24/90
.\"
.Dd July 24, 1990
.Dt KILL 1
.Os BSD 4.4
.Sh NAME
.Nm kill
.Nd terminate or signal a process
.Sh SYNOPSIS
.Nm kill
.Op Fl signal_name
.Ar pid
\&...
.Nm kill
.Op Fl l
.Sh DESCRIPTION
The kill utility sends a signal to the process(es) specified
by each pid operand. It is used to kill runaway or misbegotten
processes, such as those
.Em backgrounded
with
.Sq Li \&& .
.Nm Kill
is intelligent about who owns a process.
.Pp
Options available:
.Pp
.Tw Ds
.Tp Fl signal_name
A symbolic signal name. To find out all the possible signal names
do a
.Li kill -l .
.Tp Fl l
Available signal names are listed and are as found in
.Pa /usr/include/signal.h ,
stripped of the common SIG prefix.
.Tp Fl signal_number
A (nonnegative) decimal integer, representing the signal
to be used instead of TERM as the sig argument in
the effective call to
.Xr kill 2 .
.Tp
.Pp
Some of the more commonly used signals with kill:
.Ds I
.Cw XXX TERM
.Cl -1	-1	(broadcast to all processes, super user only)
.Cl 0	0	(sh(1) only, signals all members of process group)
.Cl 2	INT	(interupt)
.Cl 3	QUIT	(quit)
.Cl 6	ABRT	(abort)
.Cl 9	KILL	(non-catchable non-ignorable kill)
.Cl 14	ALRM	(alarm clock)
.Cl 15	TERM	(software termination signal)
.Cw
.De
.Pp
.Nm Kill
is a built-in to
.Xr csh  1  ;
it allows job specifiers of the form ``%...'' as arguments
so process id's are not as often used as
.Nm kill
arguments.
See
.Xr csh  1
for details.
.Sh SEE ALSO
.Xr csh 1 ,
.Xr ps 1 ,
.Xr kill 2 ,
.Xr sigvec 2
.Sh HISTORY
A
.Nm kill
command appeared in Version 6 AT&T Unix.
.Sh BUGS
A replacement for
.Dq Li kill 0
for
.Xr csh  1
users should be provided.