Skip navigation.
Home

Killing a bunch of processes on *nix

It has always been a pain in the neck to kill a bunch of java processes that have been spawned off from some program that I have been running.. Here's how I do it now:


ps | grep java | `awk '{print "kill -9 " $1'}`

awk is a pretty cool utility.. I'm a complete novice with it, but as a parser it seems pretty powerful.