[Linux-disciples] Kill multiple processes

Adam Rosi-Kessel adam at rosi-kessel.org
Tue Jan 4 10:01:03 EST 2011


On 1/4/2011 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?
>
Option 1

killall [processname]

Option 2

ps aux | grep [string] | grep -v grep | awk '{print $2}' | xargs kill

I'm sure there are more options.



More information about the Linux-disciples mailing list