How to Install fkill on Linux Systems
The Fkill command-line interface provides a user-friendly, efficient, and cross-platform command-line tool that can be used to kill processes in Linux that are written in NodeJS. As well as running on Mac OS X and Windows, it can also be installed on Linux. A process ID (PID) or the name of the process must be specified to kill it. Ok, so let’s look at the installation process.
Install Fkill
Install Nojejs and NPM in Debian/Ubuntu
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt install -y nodejs
verify it by checking the installed version,
[email protected]:~$ node -v v14.18.3
Install Nojejs and NPM in CentOS/RHEL / Fedora: Enable epel-release repository by installing the epel-release package
# sudo yum install --assumeyes epel-release
Get the nodejs package and install it. NPM will also be installed as a dependency.
# sudo yum install --assumeyes nodejs
Check the versions
# node -v # npm -v
As soon as Nodejs and NPM package are installed, you can now install the fkill using npm -g, which will enable a global installation of the package.
# sudo npm install -g fkill-cli
After installing fkill, you can run it interactively without any arguments by executing fkill. Choose the process you wish to terminate, and press Enter.
# fkill
You can also use fkill by supplying a PID or process name from the command line.
# fkill 8401
# fkill sshd
If you want to kill a port, prefix it with a colon. In this case, we will use 12121.
# fkill :12121
The following command displays fkill’s help message.
# fkill --help
Hopefully, you have successfully installed fkill on your linux. Thanks for reading! I hope it was informative for you!