{"id":1926,"date":"2022-12-27T03:32:33","date_gmt":"2022-12-27T03:32:33","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=1926"},"modified":"2023-08-31T06:26:48","modified_gmt":"2023-08-31T06:26:48","slug":"kill-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/kill-command-in-linux\/","title":{"rendered":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>kill<\/strong> command in <strong>Linux<\/strong> is one of the handiest tools which can be used to terminate one or multiple processes from the <strong>terminal<\/strong>. It sends a signal to the process, which ultimately closes, terminates, or kills a particular process or group of processes. If the user doesn\u2019t specify any signal to be sent along with the <strong>kill <\/strong>command, then the default <strong>TERM<\/strong> signal is sent that terminates the process. It is a handy tool for <strong>multitaskers<\/strong> who handle multiple programs simultaneously.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#B_Syntax\" >B. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#C_Options\" >C. Options<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201ckill\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Example_1_Terminating_a_Process_With_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\" >Example 1: Terminating a Process With the \u201ckill\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Example_2_Listing_Available_Signals_Using_One_of_Them_With_the_%E2%80%9Ckill%E2%80%9D_Command_to_Terminate_a_Process\" >Example 2: Listing Available Signals &amp; Using One of Them With the \u201ckill\u201d Command to Terminate a Process<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Example_3_Terminating_a_Process_by_Its_Name_Using_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\" >Example 3: Terminating a Process by Its Name Using the \u201ckill\u201d Command in Linux<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Alternatively_Terminating_Process_by_Filename_Without_PID_Using_the_%E2%80%9Ckillall%E2%80%9D_Command\" >Alternatively, Terminating Process by Filename (Without PID) Using the \u201ckillall\u201d Command<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Example_4_Terminating_Multiple_Processes_With_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\" >Example 4: Terminating Multiple Processes With the \u201ckill\u201d Command in Linux<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The <strong>Kill<\/strong> command in <strong>Linux<\/strong> terminates any process manually. It is necessary when we get an unresponsive process.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"B_Syntax\"><\/span>B. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>kill <\/strong>command is a built-in command that takes <strong>options, PID (process ID),<\/strong>\u00a0or process name. The syntax of the <strong>kill<\/strong> command is as follows.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">kill [OPTIONS]\u00a0 [PID]...<\/code><\/pre>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> In the above syntax, <strong>OPTION<\/strong> and <strong>PID<\/strong> are enclosed by a square bracket, and after <strong>PID,<\/strong> there are three dots. These dots mean that you can pass one or multiple <strong>PIDs<\/strong> to the <strong>kill<\/strong> command.<\/div><\/div>\n<h3><span class=\"ez-toc-section\" id=\"C_Options\"><\/span>C. Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>There are many options for the <strong>kill<\/strong> command. However, I have listed some most useful options. If you need any option that is not listed here, you can find that option on the <strong>man<\/strong> page (manual page) using the command below<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man kill<\/code><\/pre>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Useful Options<\/strong><\/span><\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-l<\/strong> (this option will show the available option of the kill command)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8212; SIGHUP -1<\/strong> (this option will reload the process)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8212; SIGKILL, -KILL, -9<\/strong> (this option will terminate the process)<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>&#8212; SIGTERM, -TERM -15<\/strong> (this option will terminate the process)<\/li>\n<\/ul>\n<\/div>\n<div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\"><strong>Note:<\/strong> all of the <strong>options<\/strong> are <strong>case-sensitive<\/strong>. You must be careful while using these.<\/div><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201ckill\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes, our system crashes, and we can not close a process directly. In such a scenario, the <strong>kill <\/strong>command plays a magical role. A few real-life examples of the <strong>kill<\/strong> command are given below.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_1_Terminating_a_Process_With_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Terminating a Process With the \u201ckill\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">After finding <strong>PID <\/strong>(process id) and using the <strong>PID,<\/strong> we can quickly kill a process. Here, I will first get the <strong>PID<\/strong> of the <strong>spotify<\/strong> application (which is currently running in the background) using the <strong>top<\/strong> and <strong>grep<\/strong> commands and then terminate the process using the <strong>kill<\/strong> command. I shall not give any signal here. And so, the default <strong>TERM<\/strong> signal will be passed with the <strong>kill<\/strong> command. To do so, you can follow the below procedure.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #5c375c;\" data-darkreader-inline-color=\"\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n10 | grep spotify<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p>It will give you the<strong> PID<\/strong> of <strong>spotify<\/strong> in 1st column. So you need to pick the <strong>PIDs<\/strong> of the <strong>spotify<\/strong> application. The following image shows the <strong>PID<\/strong> of <strong>spotify<\/strong> on the terminal. Here <strong>10834 10982 11009 11014<\/strong> are the <strong>PIDs<\/strong> of<strong> spotify<\/strong>.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-1943 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1.png\" alt=\"displaying PID of spotify on the terminal using top and grep command\" width=\"825\" height=\"399\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-300x145.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-1024x495.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-767x371.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-1536x743.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-2048x990.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-310x150.png 310w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-100x48.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-724x350.png 724w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-1-788x381.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p>\u278d Type the following commands in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">kill 10834 10982 11009 11014<\/code><\/pre>\n<p>\u278e Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u278f Then type the following command in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n10 | grep spotify<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u2790<\/span> Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>The following image shows that the<strong> spotify<\/strong> application is closed now. This will not show you any <strong>PID<\/strong> of <strong>spotify<\/strong> as before if it is appropriately terminated.<img decoding=\"async\" class=\"aligncenter wp-image-1944 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2.png\" alt=\"terminating firefox by passing PID s of spotify after the kill command. Then printing PID of spotify with kill command. but no PID is printed on the terminal because spotify is closed now.\" width=\"825\" height=\"435\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-300x158.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-1024x540.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-766x404.png 766w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-1536x810.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-2048x1080.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-284x150.png 284w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-100x53.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-664x350.png 664w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-2-788x415.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<hr \/>\n<p><strong><span style=\"color: #000080; font-size: 18pt;\" data-darkreader-inline-color=\"\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/killall-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201ckillall\u201d Command in Linux [6+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/jobs-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cjobs\u201d Command in Linux [6 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/ps-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cps\u201d Command in Linux [9+ Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n<hr \/>\n<h3><span class=\"ez-toc-section\" id=\"Example_2_Listing_Available_Signals_Using_One_of_Them_With_the_%E2%80%9Ckill%E2%80%9D_Command_to_Terminate_a_Process\"><\/span>Example 2: Listing Available Signals &amp; Using One of Them With the \u201ckill\u201d Command to Terminate a Process<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">After finding <strong>PID <\/strong>(process id) and using <strong>PID,<\/strong> we can quickly kill a process. Here, I will first get the list of available signals, then the <strong>PID<\/strong> of the <strong>firefox<\/strong> application using the <strong>top <\/strong>and <strong>grep<\/strong> commands, and then terminate the process using the <strong>kill<\/strong> command. To do so, you can follow the below procedure.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command to list the options of the kill command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">kill -l<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u2778 <\/span>Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p>It will display all available <strong>options<\/strong> or <strong>signals<\/strong> in the terminal to pass as the option of the <strong>kill<\/strong> command. You will pick the signal of <strong>SIGKILL,<\/strong> which is <strong>9<\/strong> in our instance.<img decoding=\"async\" class=\"aligncenter size-full wp-image-1945\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3.png\" alt=\"printing the list of available signal to pass with kill command.\" width=\"825\" height=\"330\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-300x120.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-1024x410.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-768x307.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-1536x614.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-2048x819.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-375x150.png 375w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-100x40.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-875x350.png 875w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-3-788x315.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p>\u278d Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n3 | grep firefox<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u278e <\/span>Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\">It will give you the<strong> PID<\/strong> of firefox in 1st column. So you need to pick the <strong>PID<\/strong> of firefox. Here <strong>11118<\/strong> is the <strong>PID<\/strong> of firefox. The following image shows the <strong>PID<\/strong> of firefox.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1946\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4.png\" alt=\"printing the PID of firefox on the terminal using top and grep command.\" width=\"825\" height=\"357\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-300x130.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-1024x443.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-767x332.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-1536x665.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-2048x886.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-347x150.png 347w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-100x43.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-809x350.png 809w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-4-788x340.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u278f <\/span>Type the following command in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">kill -9 11118<\/code><\/pre>\n<p>\u2790 Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"font-weight: 400;\">\u2791 <\/span>Again, type the following command in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n3 | grep firefox<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u277e <\/span>Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see the <strong>firefox<\/strong> application is closed, and no <strong>PID<\/strong> of firefox is displayed in the terminal.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1947 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5.png\" alt=\"terminating the firefox by using -9 as option and PID of firefox after kill command. then top and grep command is used to print the PID of firefox on the terminal, but no PID is displayed hence firefox is terminated\" width=\"825\" height=\"425\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-300x155.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-1024x528.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-767x395.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-1536x791.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-2048x1055.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-291x150.png 291w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-100x52.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-679x350.png 679w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-5-788x405.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_3_Terminating_a_Process_by_Its_Name_Using_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Terminating a Process by Its Name Using the \u201ckill\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Sometimes it is inconvenient to use PID from the <strong>top<\/strong> command. To overcome such a situation, you can use the <strong>pidof<\/strong> command to search the <strong>PID<\/strong> of a process and pass the <strong>PID<\/strong>s to the <strong>kill <\/strong>command in the same command line. Here, I will first get the <strong>PID<\/strong> of the <strong>firefox<\/strong> application using the <strong>pidof<\/strong> command and pass the <strong>PID<\/strong>s of the firefox to <strong>kill<\/strong> command along with an option in the same command line. It will terminate the<strong> firefox<\/strong> applications. To do so, you can follow the below procedure.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">kill -9 $(pidof firefox)<\/code><\/pre>\n<p>\u2778 Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p>\u278d Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">pidof firefox<\/code><\/pre>\n<p>\u278e Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>The following image shows that the <strong>firefox<\/strong> application is terminated since no <strong>PID<\/strong> is displayed in the terminal.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1948\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6.png\" alt=\"primarily printed all PIDs of firefox, then terminate the firefox with kill command passing -9 as option and PIDs of firefox using dollar sign.\" width=\"825\" height=\"341\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-300x124.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-1024x423.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-767x317.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-1536x635.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-2048x847.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-363x150.png 363w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-100x41.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-847x350.png 847w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-6-788x325.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h4><span class=\"ez-toc-section\" id=\"Alternatively_Terminating_Process_by_Filename_Without_PID_Using_the_%E2%80%9Ckillall%E2%80%9D_Command\"><\/span>Alternatively, Terminating Process by Filename (Without PID) Using the \u201ckillall\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">To skip the job of grabbing the <strong>PID<\/strong> of the process while killing any process, you can use the <strong>killall<\/strong> command. Here, I will use the <strong>killall<\/strong> command and pass firefox as an argument with the <strong>-9<\/strong> options to kill the <strong>firefox<\/strong> application. Eventually, it will terminate the <strong>firefox<\/strong> application. To do so, you can follow the below procedure.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">killall -9 firefox<\/code><\/pre>\n<p>\u2778 Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"font-weight: 400;\">\u278d <\/span>Then type the following command<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n3 | grep firefox<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u278e <\/span>Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p>In the image below, there is no <strong>PID<\/strong> of firefox. Therefore firefox is appropriately terminated.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1949 size-full\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7.png\" alt=\"terminating firefox application using killall command accompanied by -9 as option and firefox as argument. Then PIDs of firefox are tried with the combination of top and grep command. no PID of firefox is printed hence firefox is closed now.\" width=\"825\" height=\"316\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-300x115.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-1024x392.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-768x294.png 768w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-1536x588.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-2048x784.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-392x150.png 392w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-100x38.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-914x350.png 914w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-7-788x301.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Example_4_Terminating_Multiple_Processes_With_the_%E2%80%9Ckill%E2%80%9D_Command_in_Linux\"><\/span>Example 4: Terminating Multiple Processes With the \u201ckill\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Here, I will first get the <strong>PID<\/strong> of the <strong>spotify<\/strong> and <strong>firefox<\/strong> applications using the <strong>top <\/strong>and <strong>grep<\/strong> commands and then terminate the process using the <strong>kill<\/strong> command and the <strong>-9<\/strong> options. To do so, you can follow the below procedure.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p>\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p>\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n5 | grep -e spotify -e firefox<\/code><\/pre>\n<p>\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\">It will give you the<strong> PID<\/strong> of <strong>firefox<\/strong> and <strong>spotify<\/strong>. So you need to pick the <strong>PID<\/strong> of <strong>firefox<\/strong> and <strong>spotify<\/strong>. The following image shows the <strong>PID<\/strong> of <strong>spotify<\/strong> on the terminal. Here <strong>4463, 4794, 4977,<\/strong> and <strong>4936<\/strong> are the <strong>PID<\/strong>s of <strong>firefox<\/strong> and <strong>spotify<\/strong> respectively.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1950\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8.png\" alt=\"printing the PIDs of spotify and firefox on the terminal using the combination of top and grep command.\" width=\"825\" height=\"471\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-300x171.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-1024x585.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-767x438.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-1536x877.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-2048x1169.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-263x150.png 263w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-100x57.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-613x350.png 613w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-8-788x449.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">\u278d<\/span>\u00a0Type the following commands in the command prompt.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">Kill -9 4463 4794 4977 4936<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u278e<\/span> Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">top -n5 | grep -e spotify -e firefox<\/code><\/pre>\n<p><span style=\"font-weight: 400;\">\u278f <\/span>Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p><span style=\"color: #800080; --darkreader-inline-color: #3d3db6;\" data-darkreader-inline-color=\"\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that the <strong>firefox<\/strong> and <strong>spotify<\/strong> application is closed now. The terminal will not show you any <strong>PID<\/strong> of firefox and <strong>spotify<\/strong> as before if they are appropriately terminated.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1951\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9.png\" alt=\"firefox and spotify applications is terminated using kill command passing -9 as options and PIDs of firefox and spotify as argument. then combination of top and grep command is used to print ta PIDs of firefox and spotify but no PID is displayed hence firefox and spotify is closed now.\" width=\"825\" height=\"469\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-300x171.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-1024x582.png 1024w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-767x436.png 767w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-1536x873.png 1536w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-2048x1164.png 2048w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-264x150.png 264w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-100x57.png 100w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-616x350.png 616w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-9-788x447.png 788w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I have tried to demonstrate the applications and effectiveness of the <strong>kill <\/strong>command in <strong>Linux. <\/strong>I hope you&#8217;ll be competent enough to explore more things with the help of these practical examples and <strong>kill<\/strong> any process in case of unresponsive situations.<\/p>\n<hr \/>\n<p><strong><span style=\"font-size: 18pt; color: #000080;\" data-darkreader-inline-color=\"\">Similar Readings<\/span><\/strong><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/awk-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cawk\u201d Command in Linux [11+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/exec-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cexec\u201d Command in Linux [8 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/make-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cmake\u201d Command in Linux [5 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/sleep-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201csleep\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/xargs-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cxargs\u201d Command in Linux [5 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;1926&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201ckill\u201d Command in Linux [4+ Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The kill command in Linux is one of the handiest tools which can be used to terminate one or multiple &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201ckill\u201d Command in Linux [4+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/#more-1926\" aria-label=\"Read more about The \u201ckill\u201d Command in Linux [4+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314894,"featured_media":1942,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[59],"class_list":["post-1926","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-process-management-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201ckill\u201d Command in Linux [4+ Practical Examples]<\/title>\n<meta name=\"description\" content=\"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201ckill\u201d Command in Linux [4+ Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/kill-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/dasgupta.susmit\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-27T03:32:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-31T06:26:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Susmit Das Gupta\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Susmit Das Gupta\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/\"},\"author\":{\"name\":\"Susmit Das Gupta\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/38abbef9a1053d9faec8935dc39f10fa\"},\"headline\":\"The \u201ckill\u201d Command in Linux [4+ Practical Examples]\",\"datePublished\":\"2022-12-27T03:32:33+00:00\",\"dateModified\":\"2023-08-31T06:26:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/\"},\"wordCount\":1342,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/kill-command-in-linux-feature-image-1.png\",\"keywords\":[\"process management commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/\",\"name\":\"The \u201ckill\u201d Command in Linux [4+ Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/kill-command-in-linux-feature-image-1.png\",\"datePublished\":\"2022-12-27T03:32:33+00:00\",\"dateModified\":\"2023-08-31T06:26:48+00:00\",\"description\":\"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/kill-command-in-linux-feature-image-1.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/kill-command-in-linux-feature-image-1.png\",\"width\":400,\"height\":400,\"caption\":\"kill command in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/kill-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201ckill\u201d Command in Linux [4+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/38abbef9a1053d9faec8935dc39f10fa\",\"name\":\"Susmit Das Gupta\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Susmit-Das-Gupta-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Susmit-Das-Gupta-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Susmit-Das-Gupta-II-96x96.png\",\"caption\":\"Susmit Das Gupta\"},\"description\":\"Hello everyone. I am Susmit Das Gupta, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Mechanical Engineering graduate from Bangladesh University of Engineering and Technology. Besides my routine works, I find interest in going through new things, exploring new places, and capturing landscapes. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dasgupta.susmit\",\"https:\\\/\\\/www.instagram.com\\\/susmit_dasgupta\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/susmitdasgupta\\\/\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/susmit\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]","description":"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/kill-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]","og_description":"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.","og_url":"https:\/\/linuxsimply.com\/kill-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/dasgupta.susmit","article_published_time":"2022-12-27T03:32:33+00:00","article_modified_time":"2023-08-31T06:26:48+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png","type":"image\/png"}],"author":"Susmit Das Gupta","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Susmit Das Gupta","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/"},"author":{"name":"Susmit Das Gupta","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/38abbef9a1053d9faec8935dc39f10fa"},"headline":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]","datePublished":"2022-12-27T03:32:33+00:00","dateModified":"2023-08-31T06:26:48+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/"},"wordCount":1342,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png","keywords":["process management commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/kill-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/","url":"https:\/\/linuxsimply.com\/kill-command-in-linux\/","name":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png","datePublished":"2022-12-27T03:32:33+00:00","dateModified":"2023-08-31T06:26:48+00:00","description":"The kill command transmits a signal to terminate a process in Linux. This command is very useful in case of an unresponsive situation.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/kill-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2022\/12\/kill-command-in-linux-feature-image-1.png","width":400,"height":400,"caption":"kill command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/kill-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201ckill\u201d Command in Linux [4+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/38abbef9a1053d9faec8935dc39f10fa","name":"Susmit Das Gupta","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Susmit-Das-Gupta-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Susmit-Das-Gupta-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Susmit-Das-Gupta-II-96x96.png","caption":"Susmit Das Gupta"},"description":"Hello everyone. I am Susmit Das Gupta, currently working as a Linux Content Developer Executive at SOFTEKO. I am a Mechanical Engineering graduate from Bangladesh University of Engineering and Technology. Besides my routine works, I find interest in going through new things, exploring new places, and capturing landscapes. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/dasgupta.susmit","https:\/\/www.instagram.com\/susmit_dasgupta\/","https:\/\/www.linkedin.com\/in\/susmitdasgupta\/"],"url":"https:\/\/linuxsimply.com\/author\/susmit\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/1926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314894"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=1926"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/1926\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/1942"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=1926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=1926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=1926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}