LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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: 682

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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/Novell 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


All times are GMT -5. The time now is 05:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration