<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kill process by name &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/kill-process-by-name/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Sat, 21 May 2011 12:59:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Kill Process In Linux</title>
		<link>https://lifelinux.com/how-to-kill-process-in-linux/</link>
					<comments>https://lifelinux.com/how-to-kill-process-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Sat, 21 May 2011 11:29:34 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[grep command]]></category>
		<category><![CDATA[kill command]]></category>
		<category><![CDATA[kill process by name]]></category>
		<category><![CDATA[kill process linux]]></category>
		<category><![CDATA[kill process with kill]]></category>
		<category><![CDATA[killall command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pidof command]]></category>
		<category><![CDATA[ps command]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=705</guid>

					<description><![CDATA[<p>Sometimes, I need to kill a process in Linux. So, how can I do that ? In this article, i will explain how do I kill process in Linux. Kill process using PID (Using kill command) kill command sends a signal to a specified process. If no signal is specified, the TERM signal is sent. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-kill-process-in-linux/">How To Kill Process In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Sometimes, I need to kill a process in Linux. So, how can I do that ? In this article, i will explain how do I kill process in Linux.<br />
<span id="more-705"></span></p>
<h2>Kill process using PID (Using kill command)</h2>
<p><strong>kill command</strong> sends a signal to a specified process. If no signal is specified, the TERM signal is sent. The TERM signal will kill a process. For a list of possible signals, type &#8216;man 7 signal&#8217; in a terminal window.<br />
First you must determine the PID of the process you want to kill. This can be done usually pretty easily with the ps command in Linux. Example, find process ID of mysqld, type the following command</p>
<pre># ps aux | grep mysql</pre>
<p>Output</p>
<pre>mysql     <span style="color: #ff0000;">1815</span>  0.0  0.2 254112  3844 ?        Ssl  May16   0:51 /usr/sbin/mysqld</pre>
<p>Finally,  kill process using PID. Above command tell you PID (1815) of mysqld process. Now kill process using this PID:</p>
<pre># kill 1815</pre>
<p>Or</p>
<pre># kill -9 1815</pre>
<p>Note: &#8220;-9&#8221; option is special Kill signal which will kill the process and cannot be blocked. Do not issue &#8220;kill -9&#8221; to a process connected to a database or to a database engine process.</p>
<h3>Using top command</h3>
<p>Example, I will kill mysqld process, First, type the following command as root</p>
<pre># top</pre>
<p>On screen, process id of mysql is 1815. I will press &#8220;k&#8221; and enter: 1815 to kill mysqld process. The screen will look like<br />
<a href="http://www.lifelinux.com/wp-content/uploads/2011/05/top-command.png"><img class="aligncenter size-full wp-image-712" title="Kill Process With Top Command" src="http://www.lifelinux.com/wp-content/uploads/2011/05/top-command.png" alt="Kill Process With Top Command" width="500" srcset="https://lifelinux.com/wp-content/uploads/2011/05/top-command.png 695w, https://lifelinux.com/wp-content/uploads/2011/05/top-command-300x215.png 300w" sizes="(max-width: 695px) 100vw, 695px" /></a></p>
<h3>Kill processes by name</h3>
<p>You can use killall command. The killall command kill processes by name. Example kill mysqld processes, type the following command</p>
<pre># killall mysqld</pre>
<p>Or</p>
<pre># killall -9 mysqld</pre>
<g:plusone href="https://lifelinux.com/how-to-kill-process-in-linux/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-kill-process-in-linux/">How To Kill Process In Linux</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-kill-process-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
