Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-04-2003, 12:20 PM   #1
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, 12:33 PM   #2
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 }'`


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 / openSUSE 4 09-03-2005 03:22 PM
Killing processes hongman Linux - Newbie 3 02-28-2005 06:27 PM
killing processes adriaanbw Linux - Software 3 05-24-2003 11:46 PM
Setting and killing processes? KendersPlace Linux - Newbie 3 03-15-2003 08:37 PM
Vm: Killing Processes tbhebe Linux - General 3 03-07-2002 10:51 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:01 PM.

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