Search_for_all_Processes_and_kill_them_all

So I had a lot of apache processes running and I wanted to kill them all.

pkill -9 www-data #didn't work

kill -9 id #did work

Script: for process in `ps -eaf | grep www-data | awk '{print $2}'`; do kill -9 $process; done #worked a charm