kill `ps -ef|grep 进程名 | grep -v grep|awk '{print $2}'` 

例如:

kill `ps -ef | grep /etc/pam.d/su |grep -v grep |awk '{print $2}'`

相关文章: