Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: fkill – Interactively Kill Processes in Linux  (Read 1146 times)

0 Members and 1 Guest are viewing this topic.

sumesht

  • Guest
fkill – Interactively Kill Processes in Linux
« on: June 08, 2018, 12:09:00 am »
Fkill-cli is a free open source, simple and cross-platform command line tool designed to interactively kill processes in Linux, developed using Nodejs. It also runs on Windows and MacOS X operating systems. It requires a process ID (PID) or process name to kill it.

In this article, we will explain how to install and use fkill to interactively kill processes in Linux system

How to Install fkill-cli in Linux Systems

To install fkill-cli tool, first you need to install required packages Nodejs and NPM on your Linux distributions using following commands.

Install Nojejs and NPM in Debian/Ubuntu

Code: [Select]
--------------- Install Noje.js 8 ---------------
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt install -y nodejs
--------------- or Install Noje.js 10 ---------------
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt install -y nodejs

Install Nojejs and NPM in CentOS/RHEL & Fedora

Code: [Select]
--------------- Install Noje.js 8 ---------------
$ curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
$ sudo yum -y install nodejs
--------------- or Install Noje.js 10 ---------------
$ curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
$ sudo yum -y install nodejs

Once Nodejs and NPM packages are installed, now you can install fkill-cli package using npm command using the -g option, which enables installing it globally.

Code: [Select]
$ sudo npm install -g fkill-cli
Once you have installed fkill-cli on your system, use the fkill command to launch it in interactive mode by running it without any arguments. Once you have select the process you want to kill, press Enter.

Code: [Select]
$ fkill 


You can also provide a PID or process name from the command line, the process name is case insensitive, here are some examples.
Code: [Select]
$ fkill 1337
$ fkill firefox

To kill a port, prefix it with a colon, for example: :19999.

Code: [Select]
$ fkill :19999
You can use the -f flag to force an operation and -v allows for displaying process arguments.

Code: [Select]
$ fkill --help


Thanks
« Last Edit: June 11, 2018, 11:33:07 pm by sumesht »