Install procs on Ubuntu 20.04

Install procs on Ubuntu 20.04

The procs is a tool that displays active processes on a system. This tool can be used as an alternative to the ps command.

This tutorial demonstrates how to install procs on Ubuntu 20.04.

Install procs

Retrieve the latest version tag of procs release and assign it to variable.

PROCS_VERSION=$(curl -s "https://api.github.com/repos/dalance/procs/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Download archive from releases page of the procs repository.

sudo wget -qO /usr/local/bin/procs.gz "https://github.com/dalance/procs/releases/latest/download/procs-v${PROCS_VERSION}-x86_64-lnx.zip"

Extract binary file from archive:

sudo gunzip /usr/local/bin/procs.gz

Set execute permission for a file:

sudo chmod a+x /usr/local/bin/procs

Now procs can be used for all users as system-wide command.

Check procs version:

procs --version

Testing procs

Run procs command to display of the current processes.

procs

You can also watch active processes using --watch option. By default, update interval is 1 second. The --sortd option allows to sort list by specified column in descending order.

procs --watch --sortd cpu
Display active processes using procs on Ubuntu

Uninstall procs

If you want to completely remove procs, delete related file:

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

Leave a Comment

Cancel reply

Your email address will not be published.