LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help to find the process running by particular user and kill process one by one (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-to-find-the-process-running-by-particular-user-and-kill-process-one-by-one-4175449319/)

LittleMaster 02-09-2013 01:50 PM

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

unSpawn 02-09-2013 02:03 PM

Instead try 'pkill -9 -u ubuntu' and see 'man pkill' for details.


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