[Linux-disciples] Kill multiple processes

Jamie Forrest jamie at jamieforrest.com
Tue Jan 4 10:10:21 EST 2011


Thanks guys.

----- Original Message -----
> From: "Adam Rosi-Kessel" <adam at rosi-kessel.org>
> To: "Community of interest for free software support" <linux-disciples at lists.bostoncoop.net>
> Sent: Tuesday, January 4, 2011 10:01:03 AM
> Subject: Re: [Linux-disciples] Kill multiple processes
> 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.
> 
> _______________________________________________
> Linux-disciples mailing list
> Linux-disciples at lists.bostoncoop.net
> http://lists.bostoncoop.net/mailman/listinfo/linux-disciples


More information about the Linux-disciples mailing list