LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
 
Search this Thread
Old 02-09-2013, 01:50 PM   #1
LittleMaster
Member
 
Registered: Jun 2012
Posts: 100
Blog Entries: 1

Rep: Reputation: Disabled
Need Help to find the process running by particular user and kill process one by one


Hi
Im using the below commands to kill the process of user ubuntu and kill process as per the file /tmp/ubuntu .I had successfully redirect the output.But need help how to kill the process as per redirected ouput one by one.

ps -U ubuntu > /tmp/ubuntu
kill -9 > /tmp/ubuntu
 
Old 02-09-2013, 02:03 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,447
Blog Entries: 54

Rep: Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243Reputation: 3243
Instead try 'pkill -9 -u ubuntu' and see 'man pkill' for details.
 
  


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
kill a running process carlosOFF Linux - Server 4 07-19-2011 11:37 AM
find out how much time an already running process is spending in user and kernel spac Valentin Linux - Newbie 3 07-05-2011 02:58 PM
how to kill or clean a Uninterruptible slept session leader process from process tabl golden_boy615 Linux - General 1 12-14-2010 10:47 AM
bash `kill`: process 'B' silently dies; but process 'A' = `kill` spews back debris! GrapefruiTgirl Programming 9 06-23-2009 09:42 AM
Shell Script : Kill a running process when another process starts ashmew2 Linux - General 3 08-20-2008 03:47 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration