centos 批量杀死进程命令

 ps aux | grep xxx | grep -v grep | awk '{print $2}' | xargs kill -9

我只测试了 centos 7 可以用

命令中的xxx代表你要删选的进程名