LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2003, 11:20 AM   #1
thebeaglebeagle
LQ Newbie
 
Registered: Sep 2003
Distribution: Redhat 6.2->9
Posts: 3

Rep: Reputation: 0
killing all of a user's processes


How can I kill all processes for a user in Linux?

In Unix, I often would type "killall". This would immediately kill all proccesses (including simple login shells) except for the one I ran killall in. This was great when I knew a user had logged out completely and had tons of left over processes or crashed programs... I could su - to be him, and run "killall". This was particularly handy at the end of the day, when I didn't need my 20 open windows anymore.

In Redhat, killall seems to work very differently, and nothing in the man pages for kill or killall suggests a solution.

Oh wise Linux world, please help!
 
Old 09-04-2003, 11:33 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
maybe something like:
kill -9 `ps -aef | grep username | awk '{ print $2 }'`
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Killing running processes hitest SUSE / openSUSE 4 09-03-2005 02:22 PM
Killing processes hongman Linux - Newbie 3 02-28-2005 05:27 PM
killing processes adriaanbw Linux - Software 3 05-24-2003 10:46 PM
Setting and killing processes? KendersPlace Linux - Newbie 3 03-15-2003 07:37 PM
Vm: Killing Processes tbhebe Linux - General 3 03-07-2002 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration