« Home | GREP TEXT NOT BINARY » | REBOOTING BECAUSE OF FORK BOMBS » | Get the hidden files » | Building a Linux supercomputer using SSH and PVM » | Accessing Positional Variables » | Linux Renaming Sets of Files » | Separate Shell Command history » | NFS between Solaris & Linux » | How To Set Up Database Replication In MySQL » | My sysadmin toolbox » 

Friday, May 05, 2006 

KILLING MORE USERS

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.

Links to this post

Create a Link