killall

按名称杀死进程.

语法

  killall [option(s)] [--] name ...

  killall -l

  killall -V,--version 

选项



   -e
   --exact
          对长名称进行精确匹配 

   -g
   --process-group
          终止进程所属的进程组

   -I     不区分大小写的进程名称
   --ignore-case
     
   -i     在kill之前要求确认
   --interactive
     
   -l     列出所有已知的信号名称.
   --list

   name    要杀死的命令/进程

   -q     如果没有进程被杀死,请不要抱怨
   --quiet
     
   -r     使用正规表达式匹配要杀死的进程名称
   --regexp
     
   -s signal
   --signal signal
          用指定的进程号代替默认信号 -9 = SIGKILL

   -u user
   --user user
          杀死指定用户的进程

   -v     报告信号是否成功发送.
   --verbose
     
   -V    显示版本信息
   --version
     
   -w
   --wait
          等待所有被杀死的进程死亡

   -Z pattern
   --context pattern 
           指定安全上下文:仅终止具有匹配安全上下文的进程
           使用给定的扩展正则表达式模式



常见的kill信号

信号名称 信号值 影响
SIGHUP 1 挂断
SIGINT 2 键盘中断
SIGQUIT 3 放弃
SIGABRT 6 退出
SIGKILL 9 杀死信号
SIGTERM 15 终止信号 - 允许有序关机
SIGSTOP 17,19,23 停止这个进程

实例

杀死firefox:

$ killall -9 mozilla-bin

killall 命令实例:

linux命令:killall firefox firefox killall killall firefoxrootopen.com
linux命令:killall firefox firefox killall killall firefoxrootopen.com
2018-09-11 09:55:30

linux命令:killall nautilus nautilus killall killall nautilusrootopen.com
linux命令:killall nautilus nautilus killall killall nautilusrootopen.com
2018-03-08 02:04:48

linux命令:killall -9 wineserver wineserver -9 killall killall -9 wineserverrootopen.com
linux命令:killall -9 wineserver wineserver -9 killall killall -9 wineserverrootopen.com
2018-04-11 02:15:48

linux命令:killall -USR1 dd dd -USR1 killall killall -USR1 ddrootopen.com
linux命令:killall -USR1 dd dd -USR1 killall killall -USR1 ddrootopen.com
2018-04-02 01:25:48

linux命令:killall -STOP -m firefox firefox -m -STOP killall killall -STOP -m firefoxrootopen.com
linux命令:killall -STOP -m firefox firefox -m -STOP killall killall -STOP -m firefoxrootopen.com
2018-03-24 08:43:48

linux命令:killall -s 9 krunner_lock krunner_lock 9 -s killall killall -s 9 krunner_lockrootopen.com
linux命令:killall -s 9 krunner_lock krunner_lock 9 -s killall killall -s 9 krunner_lockrootopen.com
2018-04-25 15:32:48

linux命令:killall -2 mpg321 mpg321 -2 killall killall -2 mpg321rootopen.com
linux命令:killall -2 mpg321 mpg321 -2 killall killall -2 mpg321rootopen.com
2018-02-05 20:44:48

linux命令:killall -INFO dd dd -INFO killall killall -INFO ddrootopen.com
linux命令:killall -INFO dd dd -INFO killall killall -INFO ddrootopen.com
2018-01-01 10:15:48

linux命令:killall -9 rouge-process rouge-process -9 killall killall -9 rouge-processrootopen.com
linux命令:killall -9 rouge-process rouge-process -9 killall killall -9 rouge-processrootopen.com
2018-01-22 00:08:48

linux命令:killall rapidly_spawning_process ; killall rapidly_spawning_process ; killall rapidly_spawning_process rapidly_spawning_process killall ; rapidly_spawning_process killall ; rapidly_spawning_process killall killall rapidly_spawning_process ; killall rapidly_spawning_process ; killall rapidly_spawning_processrootopen.com
linux命令:killall rapidly_spawning_process ; killall rapidly_spawning_process ; killall rapidly_spawning_process rapidly_spawning_process killall ; rapidly_spawning_process killall ; rapidly_spawning_process killall killall rapidly_spawning_process ; killall rapidly_spawning_process ; killall rapidly_spawning_processrootopen.com
2018-01-26 20:39:48

linux命令:killall <name> <name> killall killall <name>rootopen.com
linux命令:killall <name> <name> killall killall <name>rootopen.com
2018-05-24 17:13:48

linux命令:killall xmms xmms killall killall xmmsrootopen.com
linux命令:killall xmms xmms killall killall xmmsrootopen.com
2018-02-02 01:56:48

linux命令:killall -r 'a regular expression' expression' regular 'a -r killall killall -r 'a regular expression'rootopen.com
linux命令:killall -r 'a regular expression' expression' regular 'a -r killall killall -r 'a regular expression'rootopen.com
2018-06-04 06:47:48

linux命令:killall -r 'Activ' 'Activ' -r killall killall -r 'Activ'rootopen.com
linux命令:killall -r 'Activ' 'Activ' -r killall killall -r 'Activ'rootopen.com
2018-01-27 13:17:48

linux命令:killall -u username username -u killall killall -u usernamerootopen.com
linux命令:killall -u username username -u killall killall -u usernamerootopen.com
2018-03-12 07:26:48

linux命令:killall -9 <processname> <processname> -9 killall killall -9 <processname>rootopen.com
linux命令:killall -9 <processname> <processname> -9 killall killall -9 <processname>rootopen.com
2018-02-07 19:46:48

linux命令:killall "Google Chrome" Chrome" "Google killall killall "Google Chrome"rootopen.com
linux命令:killall "Google Chrome" Chrome" "Google killall killall "Google Chrome"rootopen.com
2018-03-30 18:45:48

linux命令:killall -HUP argument argument -HUP killall killall -HUP argumentrootopen.com
linux命令:killall -HUP argument argument -HUP killall killall -HUP argumentrootopen.com
2018-05-17 02:57:48

linux命令:killall -9 unique unique -9 killall killall -9 uniquerootopen.com
linux命令:killall -9 unique unique -9 killall killall -9 uniquerootopen.com
2018-03-30 10:39:48

linux命令:killall conky conky killall killall conkyrootopen.com
linux命令:killall conky conky killall killall conkyrootopen.com
2018-05-08 05:26:48

Linux的Bash命令行(A-Z排序)