EnderUNIX Team.

EnderUNIX tips

Mail to My Friend , Home Page

[ Shell Scripting ]

"KILLING MORE USERS" - Ülkü SAYILAN - (2003-12-10 06:28:08)   [4200]


To kill all processes of a particular user from root
at unix prompt type:

# kill -9 `ps -fu username |awk '{ print $2 }'|grep -v PID`

We can also use the username as an argument and pass it from
command line, if this command is put as a script.

Mail to My Friend , Home Page