Since this was the third time I was searching the web for a way to murder all processes of a particular user, I decided to write it down:
# kill `ps -fu user_name_here | awk 'NR != 1 {print $2}'`
man pkill
Posted by x on August 19, 2008 at 07:24 PM CEST #
kill -9 -1
Posted by Alain on August 19, 2008 at 08:22 PM CEST #
How about 'pkill -U user_name_here'?
Posted by Jim on August 19, 2008 at 08:27 PM CEST #
kill -9 -1 is easy to remember, and it's always effective.
But just remember that the -9 is going to brutally shut down the processes without giving their signal handlers a chance to cleanup.
Posted by stevej on August 19, 2008 at 09:29 PM CEST #