Kill all the OS process under particular user

Below command will generate command with list of available process for user_name.

$ ps -aef  | grep -i user_name | awk '{print $2}' | sed 's/^/kill -9 /' > kill.txt

Now execute command to kill the process.

$./kill.txt

No comments:

Post a Comment