The Linux kill,pkill,killall command

Source: Internet
Author: User

Kill,pkill,killall These commands are used to kill the process.

Ways to find a process:

Ps-ef|grep

PIDOF Process Name

PS command

Http://www.cnblogs.com/along1226/p/5353959.html

Kill [Signal code] process ID

[[Email protected]_134 ~]#Kill-L1) SIGHUP2) SIGINT3) Sigquit4) Sigill5) SIGTRAP6) SIGABRT7) Sigbus8) SIGFPE9) SIGKILLTen) SIGUSR1 One) SIGSEGV A) SIGUSR2 -) Sigpipe -) SIGALRM the) SIGTERM -) Sigstkflt -) SIGCHLD -) Sigcont +) SIGSTOP -) SIGTSTP +) Sigttin A) Sigttou at) Sigurg -) sigxcpu -) Sigxfsz -) SIGVTALRM -) sigprof -) Sigwinch in) SIGIO -) SIGPWR to) Sigsys the) sigrtmin *) sigrtmin+1     $) sigrtmin+2    Panax Notoginseng) sigrtmin+3 -) sigrtmin+4     the) sigrtmin+5     +) sigrtmin+6     A) sigrtmin+7     the) sigrtmin+8 +) sigrtmin+9     -) sigrtmin+Ten     $) sigrtmin+ One     $) sigrtmin+ A     -) sigrtmin+ - -) sigrtmin+ -     the) sigrtmin+ the     -) sigrtmax- -    Wuyi) sigrtmax- -     the) sigrtmax- A -) sigrtmax- One     Wu) sigrtmax-Ten     -) sigrtmax-9     About) sigrtmax-8     $) sigrtmax-7 -) sigrtmax-6     -) sigrtmax-5     -) sigrtmax-4     A) sigrtmax-3     +) sigrtmax-2 the) sigrtmax-1     -) Sigrtmax [[Email protected]_134~]#
View Code

Kill commonly used is hup (1), Kill (9), Trem (15), respectively, representing the restart, forcibly killed, the normal end.

Killall,pkill can pick up the process name behind it.

The Linux kill,pkill,killall command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.