Install Pik Process Terminating Tool on Ubuntu 24.04

Install Pik Process Terminating Tool on Ubuntu 24.04

Pik (Process Interactive Kill) is a command line tool that can be used to find and terminate a process. It works like pkill command, but search is interactive. This tutorial demonstrates how to install Pik process terminating tool on Ubuntu 24.04.

Install Pik

Check the current Pik version from its repository on GitHub:

PIK_VERSION=$(curl -s "https://api.github.com/repos/jacek-kurlit/pik/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+')

Download Pik using the previously identified version:

wget -qO pik.tar.gz https://github.com/jacek-kurlit/pik/releases/latest/download/pik-$PIK_VERSION-x86_64-unknown-linux-gnu.tar.gz

Create temporary directory and extract a tar.gz file:

mkdir pik-temp
tar xf pik.tar.gz --strip-components=1 -C pik-temp

Move executable to /usr/local/bin directory:

sudo mv pik-temp/pik /usr/local/bin

We can check Pik version using the following command:

pik --version

Remove the unneeded archive and directory:

rm -rf pik.tar.gz pik-temp

Testing Pik

Run the pik command to launch interactive tool. Type process name, for example 'nginx'. After selecting the process, you can terminate it with CTRL+X.

sudo pik
Terminate process using Pik on Ubuntu

Uninstall Pik

To uninstall Pik, remove the related file:

sudo rm -rf /usr/local/bin/pik

Leave a Comment

Cancel reply

Your email address will not be published.