如何一下子杀死很多的进程--ZT
killall or skill或者用下面这一段:
#---cut here
#!/bin/bash
#usage: ka <process name you want to kill>
#example: ka httpd
#this will kill all httpd process.
#use this command with care.
echo Kill All $1 Thread
ps -ef|grep $1|grep -v grep|awk '{print $2}'|while read PID
do
echo kill PID $PID
kill -9 $PID
done
#end
kill `ps -A | grep xxxx | cut -b 2-5`
来删除某一程序留下的进程。 大全,呵呵...
页:
[1]