标签:color class $2 style awk lin grep span kill
$ kill -9 `ps aux | grep test | grep -v grep | awk ‘{print $2}‘`
杀掉含有test且不含有grep的进程,后面的 awk ‘{print $2}‘ 是进程号
Linux批量杀掉挂掉的进程
原文地址:https://www.cnblogs.com/lyc94620/p/10451159.html