<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: Kill process in Linux or terminate a process in UNIX or Linux systems</title>
	<atom:link href="http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/</link>
	<description>Every answer asks a more beautiful question.</description>
	<lastBuildDate>Sat, 20 Mar 2010 06:10:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: kay</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-46208</link>
		<dc:creator>kay</dc:creator>
		<pubDate>Tue, 02 Mar 2010 14:40:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-46208</guid>
		<description>many thanks
do you know how can i remove an application using unix command?</description>
		<content:encoded><![CDATA[<p>many thanks<br />
do you know how can i remove an application using unix command?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natirips</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-46205</link>
		<dc:creator>Natirips</dc:creator>
		<pubDate>Tue, 02 Mar 2010 13:11:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-46205</guid>
		<description>OK. Here&#039;s step-by-step how to kill anything.

Open a terminal (Konsole, Terminal, xterm, gnome-terminal, or press CTRL+ALT+F1*). Don&#039;t type in the $ and # signs. Those indicate the beginning of a line which you have to type. *You can use any key from F1 to F6 here. Press CTRL+ALT+F7 to go back to the GUI.

Type:
$ ps -e
If you don&#039;t see the whole list, you can scroll up and down with SHIFT+PAGE_UP and SHIFT+PAGE_DOWN.

Find the process&#039; number and type:
$ kill 12345
Where 12345 is the number of your process.

If it didn&#039;t die, type:
$ kill -9 12345
Where 12345 is the process&#039; number.

If it still didn&#039;t die, type:
$ su
# kill -9 12345
# exit
You can also use:
$ sudo su
instead of &quot;$ su&quot; if you don&#039;t know/have the root password but you happen to be a sudo-er.

If it still didn&#039;t die, type:
$ pstree
Now find process&#039; parent process (the one to the left of it), and repeat everything for the parent process.

Warning: don&#039;t try killing &quot;gdm&quot;, &quot;kdm&quot;, &quot;xdm&quot; or &quot;init&quot; unless you really know what you&#039;re doing.

You can also use:
$ pkill fullprocessname
instead of
$ kill processnumber
You can usually see the full process&#039; name in the &quot;pstree&quot; and &quot;ps -e&quot;, next to it&#039;s number.

If you want to kill all instances of something, type:
$ killall fullprocessname

Full process name may be different from the program&#039;s name, for example firefox&#039;s full process name may be &quot;firefox-bin&quot; instead of just &quot;firefox&quot;.

Both pkill and killall can use -9 parameter as well. This parameter tells it to kill forcefully (and not gently). For example:
$ pkill -9 firefox-bin
$ killall -9 npviewer.bin</description>
		<content:encoded><![CDATA[<p>OK. Here&#8217;s step-by-step how to kill anything.</p>
<p>Open a terminal (Konsole, Terminal, xterm, gnome-terminal, or press CTRL+ALT+F1*). Don&#8217;t type in the $ and # signs. Those indicate the beginning of a line which you have to type. *You can use any key from F1 to F6 here. Press CTRL+ALT+F7 to go back to the GUI.</p>
<p>Type:<br />
$ ps -e<br />
If you don&#8217;t see the whole list, you can scroll up and down with SHIFT+PAGE_UP and SHIFT+PAGE_DOWN.</p>
<p>Find the process&#8217; number and type:<br />
$ kill 12345<br />
Where 12345 is the number of your process.</p>
<p>If it didn&#8217;t die, type:<br />
$ kill -9 12345<br />
Where 12345 is the process&#8217; number.</p>
<p>If it still didn&#8217;t die, type:<br />
$ su<br />
# kill -9 12345<br />
# exit<br />
You can also use:<br />
$ sudo su<br />
instead of &#8220;$ su&#8221; if you don&#8217;t know/have the root password but you happen to be a sudo-er.</p>
<p>If it still didn&#8217;t die, type:<br />
$ pstree<br />
Now find process&#8217; parent process (the one to the left of it), and repeat everything for the parent process.</p>
<p>Warning: don&#8217;t try killing &#8220;gdm&#8221;, &#8220;kdm&#8221;, &#8220;xdm&#8221; or &#8220;init&#8221; unless you really know what you&#8217;re doing.</p>
<p>You can also use:<br />
$ pkill fullprocessname<br />
instead of<br />
$ kill processnumber<br />
You can usually see the full process&#8217; name in the &#8220;pstree&#8221; and &#8220;ps -e&#8221;, next to it&#8217;s number.</p>
<p>If you want to kill all instances of something, type:<br />
$ killall fullprocessname</p>
<p>Full process name may be different from the program&#8217;s name, for example firefox&#8217;s full process name may be &#8220;firefox-bin&#8221; instead of just &#8220;firefox&#8221;.</p>
<p>Both pkill and killall can use -9 parameter as well. This parameter tells it to kill forcefully (and not gently). For example:<br />
$ pkill -9 firefox-bin<br />
$ killall -9 npviewer.bin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kay</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-46203</link>
		<dc:creator>kay</dc:creator>
		<pubDate>Tue, 02 Mar 2010 11:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-46203</guid>
		<description>how can i kill safari?</description>
		<content:encoded><![CDATA[<p>how can i kill safari?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natirips</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45725</link>
		<dc:creator>Natirips</dc:creator>
		<pubDate>Thu, 28 Jan 2010 15:26:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45725</guid>
		<description>I&#039;m not 100% sure as I&#039;m not a Suse user, but this should do if you don&#039;t have permissions to kill it:

$ su
Password:
# ps -e&#124;grep part-of-process-name
# kill -9 PID
# exit
$ echo continue with what you were doing

Where PID is process ID (that number). You can use &#039;pstree&#039; instead of &#039;ps -e&#124;grep blah&#039; if you want.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not 100% sure as I&#8217;m not a Suse user, but this should do if you don&#8217;t have permissions to kill it:</p>
<p>$ su<br />
Password:<br />
# ps -e|grep part-of-process-name<br />
# kill -9 PID<br />
# exit<br />
$ echo continue with what you were doing</p>
<p>Where PID is process ID (that number). You can use &#8216;pstree&#8217; instead of &#8216;ps -e|grep blah&#8217; if you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45722</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 28 Jan 2010 14:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45722</guid>
		<description>What Suse Linux permissions do I need to kill a process?</description>
		<content:encoded><![CDATA[<p>What Suse Linux permissions do I need to kill a process?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natirips</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45686</link>
		<dc:creator>Natirips</dc:creator>
		<pubDate>Mon, 25 Jan 2010 12:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45686</guid>
		<description>&quot;grep&quot; doesn&#039;t kill a process, it is only used to filter output of other commands such as &quot;ps&quot; or &quot;pstree&quot;, at least in this context.

&quot;ls&quot; has practically absolutely nothing to do with killing a process. It is used to list segments (usually files) in a directory.</description>
		<content:encoded><![CDATA[<p>&#8220;grep&#8221; doesn&#8217;t kill a process, it is only used to filter output of other commands such as &#8220;ps&#8221; or &#8220;pstree&#8221;, at least in this context.</p>
<p>&#8220;ls&#8221; has practically absolutely nothing to do with killing a process. It is used to list segments (usually files) in a directory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Busandi Lal</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45679</link>
		<dc:creator>Busandi Lal</dc:creator>
		<pubDate>Mon, 25 Jan 2010 07:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45679</guid>
		<description>Hey, you can also use &lt;b&gt;grep&lt;/b&gt; command for killing the processes and &lt;b&gt;ls&lt;/b&gt; is best known utility for this.</description>
		<content:encoded><![CDATA[<p>Hey, you can also use <b>grep</b> command for killing the processes and <b>ls</b> is best known utility for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christer Jonassen</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45391</link>
		<dc:creator>Christer Jonassen</dc:creator>
		<pubDate>Fri, 01 Jan 2010 18:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45391</guid>
		<description>Exactly what I needed to kill a troublesome process on my old Clark Connect box!
Thanks!</description>
		<content:encoded><![CDATA[<p>Exactly what I needed to kill a troublesome process on my old Clark Connect box!<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mackie Mathew</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-45106</link>
		<dc:creator>Mackie Mathew</dc:creator>
		<pubDate>Wed, 09 Dec 2009 04:40:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-45106</guid>
		<description>I like to get a tree view before killing off a process. Graphics make me happy :) and also useful when the process table is a bit too complex to grasp.

If I want to kill firefox (No offence mozilla ;), this is what I use:

pstree -p &#124; grep fire*

this displays:
&#124;-firefox(28060)-+-{firefox}(28070)
        &#124;                &#124;-{firefox}(28071)
        &#124;                &#124;-{firefox}(28072)

Then I would kill it using:
 kill -9 28060</description>
		<content:encoded><![CDATA[<p>I like to get a tree view before killing off a process. Graphics make me happy :) and also useful when the process table is a bit too complex to grasp.</p>
<p>If I want to kill firefox (No offence mozilla ;), this is what I use:</p>
<p>pstree -p | grep fire*</p>
<p>this displays:<br />
|-firefox(28060)-+-{firefox}(28070)<br />
        |                |-{firefox}(28071)<br />
        |                |-{firefox}(28072)</p>
<p>Then I would kill it using:<br />
 kill -9 28060</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Natirips</title>
		<link>http://www.cyberciti.biz/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems/comment-page-1/#comment-44866</link>
		<dc:creator>Natirips</dc:creator>
		<pubDate>Tue, 24 Nov 2009 17:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.cyberciti.biz/faq/faq/kill-process-in-linux-or-terminate-a-process-in-unix-or-linux-systems.php#comment-44866</guid>
		<description>killall -u root is only usefull if you&#039;re trying to shutdown the machine &quot;gently&quot; as it kills everything it can.

Use &quot;$ ps -ejH&quot; to display all processes in a tree. You might want to also &quot;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist;rm tempprocesseslist&quot; to view the files nicely. Use &#039;kate&#039;, &#039;mousepad&#039;, &#039;vi&#039;, &#039;nano&#039; or whatever instead of &#039;gedit&#039; if you like/need.

Btw, don&#039;t type/copy-paste the quotes and the $ sign ^^.

Now if you&#039;re killing a process but it jumps back, maybe try killing/debugging it&#039;s parent instead. Parent processes are those to the left (with less spacing at the left side) in the &quot;tree&quot;.

Explanation:
&#039;$ ps -ejH&#039;
Displays all processes in a tree. This part is almost absolutely harmless (it takes up a lot of screen space). Use shift+pageUp/pageDown to scroll through the list if you&#039;re stuck in CTRL+ALF+F1-6.

&#039;$ ps -ejH&gt;tempprocesseslist&#039;
Outputs to a file named &#039;tempprocesseslist&#039; instead of screen. You can use any other filename istead of &#039;tempprocesseslist&#039;, but than you must use the same one in all three commands.

&#039;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist&#039;

Also open the file in text editor.
&#039;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist;rm tempprocesseslist&#039;
Also remove the file after it is no longer needed.</description>
		<content:encoded><![CDATA[<p>killall -u root is only usefull if you&#8217;re trying to shutdown the machine &#8220;gently&#8221; as it kills everything it can.</p>
<p>Use &#8220;$ ps -ejH&#8221; to display all processes in a tree. You might want to also &#8220;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist;rm tempprocesseslist&#8221; to view the files nicely. Use &#8216;kate&#8217;, &#8216;mousepad&#8217;, &#8216;vi&#8217;, &#8216;nano&#8217; or whatever instead of &#8216;gedit&#8217; if you like/need.</p>
<p>Btw, don&#8217;t type/copy-paste the quotes and the $ sign ^^.</p>
<p>Now if you&#8217;re killing a process but it jumps back, maybe try killing/debugging it&#8217;s parent instead. Parent processes are those to the left (with less spacing at the left side) in the &#8220;tree&#8221;.</p>
<p>Explanation:<br />
&#8216;$ ps -ejH&#8217;<br />
Displays all processes in a tree. This part is almost absolutely harmless (it takes up a lot of screen space). Use shift+pageUp/pageDown to scroll through the list if you&#8217;re stuck in CTRL+ALF+F1-6.</p>
<p>&#8216;$ ps -ejH&gt;tempprocesseslist&#8217;<br />
Outputs to a file named &#8216;tempprocesseslist&#8217; instead of screen. You can use any other filename istead of &#8216;tempprocesseslist&#8217;, but than you must use the same one in all three commands.</p>
<p>&#8216;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist&#8217;</p>
<p>Also open the file in text editor.<br />
&#8216;$ ps -ejH&gt;tempprocesseslist;gedit tempprocesseslist;rm tempprocesseslist&#8217;<br />
Also remove the file after it is no longer needed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.110 seconds -->
<!-- Cached page served by WP-Cache -->
