man-pages/man1/kill.1.html
2021-03-31 01:06:50 +01:00

165 lines
3.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of KILL</TITLE>
</HEAD><BODY>
<H1>KILL</H1>
Section: User Commands (1)<BR>Updated: 2018-05-31<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
kill - send a signal to a process
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>kill</B>
[options] &lt;pid&gt; [...]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
The default signal for kill is TERM. Use
<B>-l</B>
or
<B>-L</B>
to list available signals. Particularly useful signals include HUP,
INT, KILL, STOP, CONT, and 0. Alternate signals may be specified in
three ways:
<B>-9</B>, <B>-SIGKILL</B>
or
<B>-KILL</B>.
Negative PID values may be used to choose whole process groups; see
the PGID column in ps command output. A PID of
<B>-1</B>
is special; it indicates all processes except the kill process itself
and init.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>&lt;pid&gt; [...]</B>
<DD>
Send signal to every &lt;pid&gt; listed.
<DT id="2"><B>-&lt;signal&gt;</B>
<DD>
<B>-s &lt;signal&gt;</B>
<B>--signal &lt;signal&gt;</B>
Specify the
<B>signal</B>
to be sent. The signal can be specified by using name or number.
The behavior of signals is explained in
<B><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></B>(7)
manual page.
<DT id="3"><B>-l</B>, <B>--list</B> [<I>signal</I>]<DD>
List signal names. This option has optional argument, which
will convert signal number to signal name, or other way round.
<DT id="4"><B>-L</B>,<B>&nbsp;--table</B>
<DD>
List signal names in a nice table.
<DT id="5">
<DD>
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>NOTES</H2>
Your shell (command line interpreter) may have a built-in kill
command. You may need to run the command described here as /bin/kill
to solve the conflict.
<A NAME="lbAG">&nbsp;</A>
<H2>EXAMPLES</H2>
<DL COMPACT>
<DT id="6"><B>kill -9 -1</B>
<DD>
Kill all processes you can kill.
<DT id="7"><B>kill -l 11</B>
<DD>
Translate number 11 into a signal name.
<DT id="8"><B>kill -L</B>
<DD>
List the available signal choices in a nice table.
<DT id="9"><B>kill 123 543 2341 3453</B>
<DD>
Send the default signal, SIGTERM, to all those processes.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<B><A HREF="/cgi-bin/man/man2html?2+kill">kill</A></B>(2),
<B><A HREF="/cgi-bin/man/man2html?1+killall">killall</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+nice">nice</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+pkill">pkill</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?1+renice">renice</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?7+signal">signal</A></B>(7),
<B><A HREF="/cgi-bin/man/man2html?1+skill">skill</A></B>(1)
<A NAME="lbAI">&nbsp;</A>
<H2>STANDARDS</H2>
This command meets appropriate standards. The
<B>-L</B>
flag is Linux-specific.
<A NAME="lbAJ">&nbsp;</A>
<H2>AUTHOR</H2>
Albert Cahalan
wrote kill in 1999 to replace a bsdutils one that was not standards
compliant. The util-linux one might also work correctly.
<A NAME="lbAK">&nbsp;</A>
<H2>REPORTING BUGS</H2>
Please send bug reports to
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="10"><A HREF="#lbAB">NAME</A><DD>
<DT id="11"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="12"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="13"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="14"><A HREF="#lbAF">NOTES</A><DD>
<DT id="15"><A HREF="#lbAG">EXAMPLES</A><DD>
<DT id="16"><A HREF="#lbAH">SEE ALSO</A><DD>
<DT id="17"><A HREF="#lbAI">STANDARDS</A><DD>
<DT id="18"><A HREF="#lbAJ">AUTHOR</A><DD>
<DT id="19"><A HREF="#lbAK">REPORTING BUGS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:17 GMT, March 31, 2021
</BODY>
</HTML>