User Tools

Site Tools


search_for_all_processes_and_kill_them_all

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

search_for_all_processes_and_kill_them_all.txt · Last modified: 2022/07/19 20:13 by 127.0.0.1