杀死进程 kill -9

cui@bug:~$ killall -h
用法: killall [选项]... [--] 进程名...
       killall -l, --list
       killall -V, --version

  -e,--exact          require exact match for very long names
  -I,--ignore-case    case insensitive process name match
  -g,--process-group  kill process group instead of process
  -y,--younger-than   kill processes younger than TIME
  -o,--older-than     kill processes older than TIME
  -i,--interactive    ask for confirmation before killing
  -l,--list           list all known signal names
  -q,--quiet          don't print complaints
  -r,--regexp         interpret NAME as an extended regular expression
  -s,--signal SIGNAL  send this signal instead of SIGTERM
  -u,--user USER      kill only process(es) running as USER
  -v,--verbose        report if the signal was successfully sent
  -V,--version        display version information
  -w,--wait           wait for processes to die

cui@bug:~$

有时候adb开多了,使用adb kill-server 不起作用

而一个个的使用   kill -9 线程 还需要 ps aux|grep adb 来查看线程数

使用 killall -s 信号量  进程名 即可一次杀死

使用 killall -v 显示操作反馈

 kill -9 -v `ps aux |grep progress-name |awk '{print$2}'`
原文地址:https://www.cnblogs.com/conncui/p/killall.html