Kill All Processes

Prerequisites

  • Must have a UNIX terminal

Steps

to kill by name one can type:

ps -ef | grep ${NAME}

after you will retrieve a list of all the processes with that name then all thats left is to

kill -9 ${pid}

passing in the respected pid

Next

To kill all processes of a username its as simple as

pkill -u ${username}

Hope this saves you a little bit of time.

 

 

Advertisements