Monday, September 17th, 2007...4:52 pm

Killing a process by name in ubuntu

Jump to Comments

I have to kill mongrel alot because it’s a flea-bitten mutt.

My usual method was to do a ps -aux | grep mongrel , find the pid and kill it!

Annoying and stupid!

Now I just use the nice pkill tool in ubuntu like so.

pkill mongrel

boom! All bad doggies killed! This probably works on other *nix flavors, but who knows if your stupid admin installed it.

1 Comment

  • Alternatively, ‘killall mongrel’ will have more or less the same effect, and is avaliable on all Linux, and probably most UNIX.

Leave a Reply