{"id":3458,"date":"2018-04-06T17:15:00","date_gmt":"2018-04-06T14:15:00","guid":{"rendered":"http:\/\/www.systemcodegeeks.com\/?p=3458"},"modified":"2018-04-05T13:32:32","modified_gmt":"2018-04-05T10:32:32","slug":"linux-kill-process-example","status":"publish","type":"post","link":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/","title":{"rendered":"Linux Kill Process Example"},"content":{"rendered":"<p>Hello readers! A <span style=\"text-decoration: underline;\">process<\/span> on a Linux system is defined as an occurrence of a running application or task. In this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the <code>kill<\/code> command in Linux.<\/p>\n<h2>1. Introduction<\/h2>\n<p>A <strong>process<\/strong> on a Linux system is defined as an <span style=\"text-decoration: underline;\">occurrence of a running application or task<\/span>. When a process is executing, it keeps switching it state from <em>running<\/em> (i.e. the process is either executing or just set to be executed) or <em>waiting<\/em> (i.e. the process is waiting for an event or a system resource).<br \/>\n[ulp id=&#8217;SG9vnnKgRCD7iZxf&#8217;]<\/p>\n<h3>1.1 Kill command in Linux<\/h3>\n<p>A <code>kill<\/code> command is a command line utility for terminating a suspended or hung up or an entire process group. The <code>kill<\/code> command sends a <code>TERM<\/code> signal to the specified process allowing the process to perform any clean-up operations before the shutdown. The <code>kill<\/code> command usually terminates or restarts the process and has the following prototype form:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Basic syntax<\/em><\/span><\/p>\n<pre class=\"brush:bash; wrap-lines:false;\"># kill &lt;pid&gt;\r\n<\/pre>\n<p>Where:<\/p>\n<ul>\n<li><code>pid<\/code> indicates the <span style=\"text-decoration: underline;\">Process Identification Number<\/span> of the application which can be used to terminate the process<\/li>\n<li>A <code>pid<\/code> of <code>-1<\/code> is special as it indicates to terminate all processes except two i.e. the <code>kill<\/code> process itself and the <em>root<\/em> process<\/li>\n<\/ul>\n<p>Do remember:<\/p>\n<ul>\n<li>The <code>kill -9<\/code> command <em>forcefully<\/em> terminates a process in the Linux system<\/li>\n<li>To send a signal to any process in the Linux system, developers use the <code>kill<\/code> command. In Linux, the frequently used signals include the <code>HUP<\/code>, <code>INT<\/code>, <code>KILL<\/code>, <code>STOP<\/code>, <code>CONT<\/code>, and <code>0<\/code><\/li>\n<\/ul>\n<p>If developers want to have a detailed look at the available list of Linux signals, they can refer <a href=\"https:\/\/www.computerhope.com\/unix\/signals.htm#linux\" target=\"_blank\" rel=\"noopener\">this<\/a> link.<\/p>\n<h3>2 Practical usage<\/h3>\n<p>Let&#8217;s understand the usage of this command with the help of the sample snippets.<\/p>\n<h4>2.2.1 Start Linux<\/h4>\n<p>Start a standalone Linux instance as shown below.<\/p>\n<figure id=\"attachment_3459\" aria-describedby=\"caption-attachment-3459\" style=\"width: 717px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-1.jpg\"><img decoding=\"async\" class=\"wp-image-3459 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-1.jpg\" alt=\"Fig. 1: Start Linux instance\" width=\"717\" height=\"94\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-1.jpg 717w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-1-300x39.jpg 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><figcaption id=\"caption-attachment-3459\" class=\"wp-caption-text\">Fig. 1: Start Linux instance<\/figcaption><\/figure>\n<h4>2.2.2 Identify the process id of an application<\/h4>\n<p>To <span style=\"text-decoration: underline;\">terminate a process<\/span>, developers need to find the <em>Process Identification Number<\/em> (i.e. PID) of an executing process or the process that needs to be terminated. To identify the process identification number (i.e. pid) of an application, developers can execute the <code>ps -ef<\/code> command to display the list of applications that are currently running on the Linux system. The following Linux command can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 1<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\"># ps \u2013ef\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3460\" aria-describedby=\"caption-attachment-3460\" style=\"width: 719px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-2.jpg\"><img decoding=\"async\" class=\"wp-image-3460 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-2.jpg\" alt=\"Fig. 2: Process id all programs\" width=\"719\" height=\"376\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-2.jpg 719w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-2-300x157.jpg 300w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/a><figcaption id=\"caption-attachment-3460\" class=\"wp-caption-text\">Fig. 2: Process id all programs<\/figcaption><\/figure>\n<p>Now, in this tutorial, we are running the email program and let\u2019s say we wish to terminate the program. To identify the process identification number of a specific program, developers can use the <code>grep<\/code> command in conjugation to the <code>ps \u2013ef<\/code> command. The following Linux command can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 2<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\"># ps \u2013ef | grep mutt\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3461\" aria-describedby=\"caption-attachment-3461\" style=\"width: 682px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-3.jpg\"><img decoding=\"async\" class=\"wp-image-3461 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-3.jpg\" alt=\"Fig. 3: Process id of a specific program\" width=\"682\" height=\"76\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-3.jpg 682w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-3-300x33.jpg 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/a><figcaption id=\"caption-attachment-3461\" class=\"wp-caption-text\">Fig. 3: Process id of a specific program<\/figcaption><\/figure>\n<h4>2.2.3 Terminating a process<\/h4>\n<p>Once the process identification number is known for a program, let us now take a look at how to kill the process. In this example, I want to terminate the <code>mutt<\/code> program, so I\u2019ll do it as follows:<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 3<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\"># kill &lt;_Process_id_of_mutt_program_&gt;\r\n<\/pre>\n<p>The <code>kill<\/code> command sends a <code>TERM<\/code> signal indicating that the process should be terminated. The operating system catches this signal and handles the process termination gracefully such as releasing the resources or saving the program state. The command gives the following output.<\/p>\n<figure id=\"attachment_3462\" aria-describedby=\"caption-attachment-3462\" style=\"width: 709px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-4.jpg\"><img decoding=\"async\" class=\"wp-image-3462 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-4.jpg\" alt=\"Fig. 4: Terminate the email process\" width=\"709\" height=\"87\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-4.jpg 709w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-4-300x37.jpg 300w\" sizes=\"(max-width: 709px) 100vw, 709px\" \/><\/a><figcaption id=\"caption-attachment-3462\" class=\"wp-caption-text\">Fig. 4: Terminate the email process<\/figcaption><\/figure>\n<p>Let\u2019s say instead of specifying a process by its process id, developers can also specify the name of the process. If more than one process runs with the same name, <em>all<\/em> of them will be terminated. The following Linux command can be used.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 4<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\"># killall mutt\r\n<\/pre>\n<h4>2.2.4 Verifying a process<\/h4>\n<p>To verify that the process has been <em>successfully<\/em> terminated, developers can run the <code>pidof<\/code> command and they will not be able to view the process identification number of the terminated program.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>Query 5<\/em><\/span><\/p>\n<pre class=\"brush:bash;wrap-lines:false;\"># pidof &lt;_application_name_&gt;\r\n<\/pre>\n<p>The command gives the following output.<\/p>\n<figure id=\"attachment_3463\" aria-describedby=\"caption-attachment-3463\" style=\"width: 717px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-5.jpg\"><img decoding=\"async\" class=\"wp-image-3463 size-full\" src=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-5.jpg\" alt=\"Fig. 5: Verifying the terminated process\" width=\"717\" height=\"66\" srcset=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-5.jpg 717w, https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/linux-project-guide-5-300x28.jpg 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><\/a><figcaption id=\"caption-attachment-3463\" class=\"wp-caption-text\">Fig. 5: Verifying the terminated process<\/figcaption><\/figure>\n<p>That\u2019s all for this post. Happy Learning!!<\/p>\n<h2>3. Conclusion<\/h2>\n<p>In this tutorial, developers learned how to terminate an existing process in the Linux system using the <code>kill<\/code> command.<\/p>\n<ul>\n<li>The <code>kill<\/code> command sends a signal to other processes in Linux<\/li>\n<li>To display a full list of supported signals, developers can execute the <code>kill \u2013l<\/code> command<\/li>\n<\/ul>\n<p>Developers can download the sample application as an Eclipse project in the <a href=\"#projectDownload\">Downloads<\/a> section.<\/p>\n<h2><a name=\"projectDownload\"><\/a>4. Download the Eclipse Project<\/h2>\n<p>This was a tutorial of <code>kill<\/code> command in Linux.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2018\/04\/Commands.zip\" target=\"_blank\" rel=\"noopener\"><strong>Commands<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hello readers! A process on a Linux system is defined as an occurrence of a running application or task. In this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux. 1. Introduction A process on a Linux system is defined &hellip;<\/p>\n","protected":false},"author":1389,"featured_media":192,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[61],"class_list":["post-3458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux Kill Process Example - System Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux Kill Process Example - System Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\" \/>\n<meta property=\"og:site_name\" content=\"System Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/systemcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2018-04-06T14:15:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yatin Batra\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@systemcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yatin Batra\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\"},\"author\":{\"name\":\"Yatin Batra\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82\"},\"headline\":\"Linux Kill Process Example\",\"datePublished\":\"2018-04-06T14:15:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\"},\"wordCount\":742,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"keywords\":[\"Linux\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\",\"name\":\"Linux Kill Process Example - System Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"datePublished\":\"2018-04-06T14:15:00+00:00\",\"description\":\"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.systemcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\/\/www.systemcodegeeks.com\/category\/linux\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Kill Process Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#website\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"name\":\"System Code Geeks\",\"description\":\"Operating System Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.systemcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/systemcodegeeks\",\"https:\/\/x.com\/systemcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82\",\"name\":\"Yatin Batra\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g\",\"caption\":\"Yatin Batra\"},\"description\":\"Yatin has graduated in Electronics &amp; Telecommunication. During his studies, he has been involved with a large number of projects ranging from programming and software engineering to telecommunications analysis. He works as a software developer in the information technology sector where he is mainly involved with projects based on Java and J2EE technologies platform.\",\"sameAs\":[\"https:\/\/www.systemcodegeeks.com\"],\"url\":\"https:\/\/www.systemcodegeeks.com\/author\/yatin-batra\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux Kill Process Example - System Code Geeks - 2026","description":"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.","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:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/","og_locale":"en_US","og_type":"article","og_title":"Linux Kill Process Example - System Code Geeks - 2026","og_description":"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.","og_url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/","og_site_name":"System Code Geeks","article_publisher":"https:\/\/www.facebook.com\/systemcodegeeks","article_published_time":"2018-04-06T14:15:00+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","type":"image\/jpeg"}],"author":"Yatin Batra","twitter_card":"summary_large_image","twitter_creator":"@systemcodegeeks","twitter_site":"@systemcodegeeks","twitter_misc":{"Written by":"Yatin Batra","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#article","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/"},"author":{"name":"Yatin Batra","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82"},"headline":"Linux Kill Process Example","datePublished":"2018-04-06T14:15:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/"},"wordCount":742,"commentCount":0,"publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","keywords":["Linux"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/","url":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/","name":"Linux Kill Process Example - System Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.systemcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage"},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","datePublished":"2018-04-06T14:15:00+00:00","description":"Hello readers, in this tutorial, we will learn how to terminate a suspended or hung up process or an entire process group using the kill command in Linux.","breadcrumb":{"@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#primaryimage","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2016\/01\/linux-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.systemcodegeeks.com\/linux\/linux-kill-process-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.systemcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Linux","item":"https:\/\/www.systemcodegeeks.com\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux Kill Process Example"}]},{"@type":"WebSite","@id":"https:\/\/www.systemcodegeeks.com\/#website","url":"https:\/\/www.systemcodegeeks.com\/","name":"System Code Geeks","description":"Operating System Developers Resource Center","publisher":{"@id":"https:\/\/www.systemcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.systemcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.systemcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.systemcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.systemcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/systemcodegeeks","https:\/\/x.com\/systemcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/b0c9b724e83b9620cb4262f45e9f6e82","name":"Yatin Batra","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.systemcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3f011dd665043468ba193f7b07472ebbedfa359cff5e576a91a5901c130ca6f1?s=96&d=mm&r=g","caption":"Yatin Batra"},"description":"Yatin has graduated in Electronics &amp; Telecommunication. During his studies, he has been involved with a large number of projects ranging from programming and software engineering to telecommunications analysis. He works as a software developer in the information technology sector where he is mainly involved with projects based on Java and J2EE technologies platform.","sameAs":["https:\/\/www.systemcodegeeks.com"],"url":"https:\/\/www.systemcodegeeks.com\/author\/yatin-batra\/"}]}},"_links":{"self":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/users\/1389"}],"replies":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3458"}],"version-history":[{"count":0,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/posts\/3458\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media\/192"}],"wp:attachment":[{"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/media?parent=3458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.systemcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}