Gtop is a command-line system monitoring tool that displays in a graph format, a plethora of system metrics such as running processes, CPU utilization, network bandwidth, memory Usage, swap space, and Hard Disk usage. In this guide, you will learn how to install Gtop in Centos7 and Ubuntu 18.04.
Installation of Gtop in CentOS 7
The first step in installing Gtop on CentOS 7 is to install the epel repository. EPEL is short for Extra Packages for Enterprise Linux. As the name suggests, it ships extra packages and dependencies required for smooth running of applications.
# yum install epel-release
# yum install nodejs
Next, install npm package manager as shown
# yum install npm
Finally, install gtop using the npm package manager.
# npm install gtop -g
To launch gtop and view the system’s metrics run.
Installation of Gtop in Ubuntu 18.04
Just like in CentOS 8, begin by installing NodeJS on Ubuntu.
# sudo apt install nodejs
To check the version of NodeJS installed, run
Next, install npm package Manager using the command as shown
# sudo apt install npm
Using npm install the Gtop monitoring tool
npm install gtop -g
Finally, launch Gtop