« 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

About me

  • I'm Adrian
  • From Manila, Philippines
  • Humankind cannot gain anything without first giving something in return. To obtain, something of equal value must be lost. That is alchemy's first law of Equivalent Exchange.
My profile

Links

    Add to Google Add Mox Diamond to Newsburst from CNET News.com Subscribe in NewsGator Online Subscribe in FeedLounge Add to netvibes

Add this blog to my Technorati Favorites!
Powered by Blogger
and Blogger Templates