cnhnln 发表于 2003-12-23 23:27:51

如何一下子杀死很多的进程--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`
来删除某一程序留下的进程。

bwb 发表于 2003-12-24 10:56:47

大全,呵呵...
页: [1]
查看完整版本: 如何一下子杀死很多的进程--ZT