{"id":13599,"date":"2019-04-03T11:29:45","date_gmt":"2019-04-03T11:29:45","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13599"},"modified":"2019-04-03T11:29:45","modified_gmt":"2019-04-03T11:29:45","slug":"fkill-interactively-kill-processes-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/03\/fkill-interactively-kill-processes-in-linux\/","title":{"rendered":"fkill \u2013 Interactively Kill Processes in Linux"},"content":{"rendered":"<p><strong>Fkill-cli<\/strong>\u00a0is a free open source, simple and cross-platform command line tool designed to interactively kill processes in Linux, developed using\u00a0<strong>Nodejs<\/strong>. It also runs on Windows and MacOS X operating systems. It requires a process\u00a0<strong>ID<\/strong>\u00a0(<strong>PID<\/strong>) or process name to kill it.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/fkill-Kill-Linux-Processes.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/fkill-Kill-Linux-Processes.gif\" alt=\"fkill - Kill Linux Processes\" width=\"900\" height=\"499\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<h4>Requirements:<\/h4>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/install-nodejs-npm-in-centos-ubuntu\/\" target=\"_blank\" rel=\"noopener\">Install Nodejs 8 and NPM in Linux<\/a><\/li>\n<\/ol>\n<p>In this article, we will explain how to install and use\u00a0<strong>fkill<\/strong>\u00a0to interactively kill processes in Linux systems.<\/p>\n<h3>How to Install fkill-cli in Linux Systems<\/h3>\n<p>To install\u00a0<strong>fkill-cli<\/strong>\u00a0tool, first you need to install required packages\u00a0<strong>Nodejs<\/strong>\u00a0and\u00a0<strong>NPM<\/strong>\u00a0on your Linux distributions using following commands.<\/p>\n<h4>Install Nojejs and NPM in Debian\/Ubuntu<\/h4>\n<pre><strong>--------------- Install Noje.js 8 ---------------<\/strong> \r\n$ curl -sL https:\/\/deb.nodesource.com\/setup_8.x | sudo -E bash -\r\n$ sudo apt install -y nodejs\r\n\r\n<strong>--------------- or Install Noje.js 10 ---------------<\/strong>\r\n$ curl -sL https:\/\/deb.nodesource.com\/setup_10.x | sudo -E bash -\r\n$ sudo apt install -y nodejs\r\n<\/pre>\n<h4>Install Nojejs and NPM in CentOS\/RHEL &amp; Fedora<\/h4>\n<pre><strong>--------------- Install Noje.js 8 ---------------<\/strong> \r\n$ curl --silent --location https:\/\/rpm.nodesource.com\/setup_8.x | sudo bash -\r\n$ sudo yum -y install nodejs\r\n\r\n<strong>--------------- or Install Noje.js 10 ---------------<\/strong>\r\n$ curl --silent --location https:\/\/rpm.nodesource.com\/setup_10.x | sudo bash -\r\n$ sudo yum -y install nodejs\r\n<\/pre>\n<p>Once\u00a0<strong>Nodejs<\/strong>\u00a0and\u00a0<strong>NPM<\/strong>\u00a0packages are installed, now you can install\u00a0<strong>fkill-cli<\/strong>\u00a0package using\u00a0<strong>npm<\/strong>\u00a0command using the\u00a0<code>-g<\/code>\u00a0option, which enables installing it globally.<\/p>\n<pre>$ sudo npm install -g fkill-cli\r\n<\/pre>\n<p>Once you have installed\u00a0<strong>fkill-cli<\/strong>\u00a0on your system, use the\u00a0<strong>fkill<\/strong>\u00a0command to launch it in interactive mode by running it without any arguments. Once you have select the process you want to kill, press\u00a0<strong>Enter<\/strong>.<\/p>\n<pre>$ fkill  \r\n<\/pre>\n<div id=\"attachment_29674\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/run-fkill-interactively.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29674\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/06\/run-fkill-interactively.png\" alt=\"Run fkill Interactively\" width=\"642\" height=\"306\" aria-describedby=\"caption-attachment-29674\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29674\" class=\"wp-caption-text\">Run fkill Interactively<\/p>\n<\/div>\n<p>You can also provide a\u00a0<strong>PID<\/strong>\u00a0or\u00a0<strong>process name<\/strong>\u00a0from the command line, the process name is case insensitive, here are some examples.<\/p>\n<pre>$ fkill 1337\r\n$ fkill firefox\r\n<\/pre>\n<p>To kill a\u00a0<strong>port<\/strong>, prefix it with a colon, for example:\u00a0<code>:19999<\/code>.<\/p>\n<pre>$ fkill :19999\r\n<\/pre>\n<p>You can use the\u00a0<code>-f<\/code>\u00a0flag to force an operation and\u00a0<code>-v<\/code>\u00a0allows for displaying process arguments.<\/p>\n<pre>$ fkill -f 1337\r\n$ fkill -v firefox\r\n<\/pre>\n<p>To view the fkill help message, use the following command.<\/p>\n<pre>$ fkill --help\r\n<\/pre>\n<p>Also check out examples of how to kill processes using traditional Linux tools such as\u00a0<strong>kill<\/strong>,\u00a0<strong>pkill<\/strong>\u00a0and\u00a0<strong>killall<\/strong>:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/how-to-kill-a-process-in-linux\/\" target=\"_blank\" rel=\"noopener\">A Guide to Kill, Pkill and Killall Commands to Terminate a Process in Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/find-and-kill-running-processes-pid-in-linux\/\" target=\"_blank\" rel=\"noopener\">How to Find and Kill Running Processes in Linux<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/kill-processes-unresponsive-programs-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">How to Kill Linux Processes\/Unresponsive Applications Using \u2018xkill\u2019 Command<\/a><\/li>\n<\/ol>\n<p><strong>Fkill-cli Github repository<\/strong>:\u00a0<a href=\"https:\/\/github.com\/sindresorhus\/fkill-cli\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/github.com\/sindresorhus\/fkill-cli<\/a><\/p>\n<p>That\u2019s it! In this article, we have explained how to install and use\u00a0<strong>fkill-cli<\/strong>\u00a0tool in Linux with examples. Use the comment form below to ask any questions, or share your thoughts about it.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/fkill-kill-linux-process-by-name-or-pid\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fkill-cli\u00a0is a free open source, simple and cross-platform command line tool designed to interactively kill processes in Linux, developed using\u00a0Nodejs. It also runs on Windows and MacOS X operating systems. It requires a process\u00a0ID\u00a0(PID) or process name to kill it. Requirements: Install Nodejs 8 and NPM in Linux In this article, we will explain how &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/04\/03\/fkill-interactively-kill-processes-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;fkill \u2013 Interactively Kill Processes in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13599","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13599"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13599\/revisions"}],"predecessor-version":[{"id":13600,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13599\/revisions\/13600"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}