kill -9
02 December 2010

Suppose you have a hung Linux application with a pile of processes. Here's a quick way to kill them all without having to issue a kill for each separately:

# kill -9 `ps ax | grep AppName | cut -d ' ' -f1`

Use with extreme caution! I take no responsibility for ensuing results. Please run the piece within the backticks separately before implementing the kill to verify that you're getting the right list of process IDs.

J-othy @ December 02, 2010 21:05
Nice, a blog post with a disclaimer! Love it.
NICKNAME @ October 09, 2011 20:41
Stop hack the program!!!