首页 > Linux操作系统 > Linux操作系统 > 批量殺進程
ps -ef|grep nagios|grep -v grep|cut -c 9-15|xargs kill -9
或者
ps x|grep nagios|grep -v grep |awk '{print $1}'|xargs kill -9
這兩條命令的作用是殺掉所有包含關鍵字“nagios”的進程。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25402324/viewspace-715533/ ,如需转载,请注明出处,否则将追究法律责任。
注册时间:2011-02-18