ps -ef | grep [search string] | awk '{print $2}' | xargs kill -9
示例:
ps -ef | grep inotify | awk '{print $2}' | xargs kill -9
参考链接:http://www.heatware.net/linux-unix/how-to-kill-all-instances-script-program-using-string-search/
ps -ef | grep [search string] | awk '{print $2}' | xargs kill -9
示例:
ps -ef | grep inotify | awk '{print $2}' | xargs kill -9
参考链接:http://www.heatware.net/linux-unix/how-to-kill-all-instances-script-program-using-string-search/