<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic find user process in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118635#M31091</link>
    <description>I want to kill all process for a particular user , I know I can use ps -ef to find the pid , but I found that it only find the pid , if I want to kill all process of  a particular user by one time , is there any kill command can do that ? thx</description>
    <pubDate>Wed, 19 Dec 2007 04:15:58 GMT</pubDate>
    <dc:creator>ust3</dc:creator>
    <dc:date>2007-12-19T04:15:58Z</dc:date>
    <item>
      <title>find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118635#M31091</link>
      <description>I want to kill all process for a particular user , I know I can use ps -ef to find the pid , but I found that it only find the pid , if I want to kill all process of  a particular user by one time , is there any kill command can do that ? thx</description>
      <pubDate>Wed, 19 Dec 2007 04:15:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118635#M31091</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-12-19T04:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118636#M31092</link>
      <description>use this command&lt;BR /&gt;&lt;BR /&gt;ps -ef | awk '{print $1" "$2}' | grep &lt;USER&gt; | awk '{print $NF}' | xargs kill&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It will kill a users all processes at a glance.&lt;BR /&gt;&lt;BR /&gt;be careful. Before running this please check first if the processes are significant.&lt;BR /&gt;&lt;/USER&gt;</description>
      <pubDate>Wed, 19 Dec 2007 04:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118636#M31092</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-19T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118637#M31093</link>
      <description>'ps -u' is your friend.&lt;BR /&gt;&lt;BR /&gt;ps -u &lt;USER&gt; | awk '{system("kill -TERM " $1)}'&lt;/USER&gt;</description>
      <pubDate>Wed, 19 Dec 2007 06:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118637#M31093</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-12-19T06:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118638#M31094</link>
      <description>ps -u root|awk '{print "kill -9 " $1}' | sh</description>
      <pubDate>Wed, 19 Dec 2007 06:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118638#M31094</guid>
      <dc:creator>T G Manikandan</dc:creator>
      <dc:date>2007-12-19T06:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118639#M31095</link>
      <description>You can use&lt;BR /&gt; pkill -u username&lt;BR /&gt;or&lt;BR /&gt; pkill -u username -s signalname</description>
      <pubDate>Thu, 20 Dec 2007 18:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118639#M31095</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2007-12-20T18:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118640#M31096</link>
      <description>Whee yay! Command I've not seen/used before! :))</description>
      <pubDate>Fri, 21 Dec 2007 20:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118640#M31096</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2007-12-21T20:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118641#M31097</link>
      <description>I have pkill in my linux and solaris boxes but not in HPUX</description>
      <pubDate>Sat, 22 Dec 2007 16:58:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118641#M31097</guid>
      <dc:creator>Srimalik</dc:creator>
      <dc:date>2007-12-22T16:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118642#M31098</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;I have pkill in my box, I use pkill command before , it is good to kill the deamon , for example if I want to kill all httpd process , it can kill all httpd process by one time ( pkill httpd ), but is it suitable to use for killing the user process ? because the user process involves the init process ( the ppid is 1 ) , if use pkill , I am afraid it will kill other process that generate from other user . Thx for advise.</description>
      <pubDate>Mon, 24 Dec 2007 03:59:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118642#M31098</guid>
      <dc:creator>ust3</dc:creator>
      <dc:date>2007-12-24T03:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: find user process</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118643#M31099</link>
      <description>"pkill -u username" will only kill processes that have effective user id "username".  I don't understand your concern about parent processes.</description>
      <pubDate>Thu, 27 Dec 2007 06:14:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-user-process/m-p/4118643#M31099</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2007-12-27T06:14:45Z</dc:date>
    </item>
  </channel>
</rss>

