[Linux-disciples] Kill multiple processes

Stephen R Laniel steve at stevereads.com
Tue Jan 4 10:01:14 EST 2011


On Jan 4, 2011, at 10:02 AM, Jamie Forrest wrote:

> I want to kill all the processes returned by a ps | grep. What's the quickest way to do that?
You could also do

ps aux |grep foo |awk '{print $2}' |xargs kill

(untested, but try it out -- obviously testing first without the 'kill')

-- 
Stephen R. Laniel
steve at stevereads.com
Cell: +(617) 308-5571
http://stevereads.com/
PGP key: http://stevereads.com/slaniel.key



More information about the Linux-disciples mailing list