📄 kill.1
字号:
.\" Copyright 1994 Salvatore Valente (svalente@mit.edu).\" Copyright 1992 Rickard E. Faith (faith@cs.unc.edu).\" May be distributed under the GNU General Public License.TH KILL 1 "14 October 1994" "Linux Utilities" "Linux Programmer's Manual".SH NAMEkill \- terminate a process.SH SYNOPSIS.BI "kill [ \-s " signal " | \-p ] [ \-a ] [ \-\- ] " "pid ...".br.BI "kill -l [ " signal " ]".SH DESCRIPTIONThe command.B killsends the specified signal to the specified process or process group.If no signal is specified, the TERM signal is sent. The TERM signalwill kill processes which do not catch this signal. For other processes,it may be necessary to use the KILL (9) signal, since this signal cannotbe caught..PPMost modern shells have a builtin kill function, with a usage rather similarto that of the command described here. The `-a' and `-p' options,and the possibility to specify pids by command name is a local extension..SH OPTIONS.TP.IR pid ...Specify the list of processes that.B killshould signal. Each.I pidcan be one of five things:.RS.TP.I nwhere.I nis larger than 0. The process with pid.I nwill be signaled..TP.B 0All processes in the current process group are signaled..TP.B -1All processes with pid larger than 1 will be signaled..TP.BI - nwhere .I n is larger than 1.All processes in process group.I nare signaled. When an argument of the form `-n' is given,and it is meant to denote a process group,either the signal must be specified first, or the argument must be precededby a `--' option, otherwise it will be taken as the signal to send..TP.I commandnameAll processes invoked using that name will be signaled..RE.TP.BI \-s " signal"Specify the signal to send.The signal may be given as a signal name or number..TP.B \-lPrint a list of signal names. These are found in.I /usr/include/linux/signal.h.TP.B \-aDo not restrict the commandname-to-pid conversion to processeswith the same uid as the present process..TP.B \-pSpecify that.B killshould only print the process id (pid)of the named processes, and not send any signals..SH "SEE ALSO".BR bash (1),.BR tcsh (1),.BR kill (2),.BR sigvec (2),.BR signal (7).SH AUTHORTaken from BSD 4.4. The ability to translate process names to processids was added by Salvatore Valente <svalente@mit.edu>.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -