zoukankan      html  css  js  c++  java
  • 杀死进程 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}'`
  • 相关阅读:
    1082 射击比赛 (20 分)
    1091 N-自守数 (15 分)
    1064 朋友数 (20 分)
    1031 查验身份证 (15 分)
    1028 人口普查 (20 分)
    1059 C语言竞赛 (20 分)
    1083 是否存在相等的差 (20 分)
    1077 互评成绩计算 (20 分)
    792. 高精度减法
    791. 高精度加法
  • 原文地址:https://www.cnblogs.com/conncui/p/killall.html
Copyright © 2011-2022 走看看