显示系统所有进程:ps aux;
重置某个进程:kill -HUP /var/run/crond.pid;
六亲不认杀死进程:cat /var/run/crond.pid | xargs kill -9;
ps aux|grep -v grep |grep ssh|awk ‘{print $2}‘
1870
ps aux|grep -v grep |grep ssh|awk ‘{print $2}‘ |xargs -L 1 sudo kill -HUP
#sudo 提升权限#
ps -aux 提示错误:Warning: bad syntax, perhaps a bogus ‘-‘? See /usr/share/doc/procps-3.2.8/FAQ
解决:去掉aux前的“-”即可
原文地址:http://gogocto.blog.51cto.com/7760895/1604939