Linux Mint

How to Install and Use Gtop on Linux Mint 21

Gtop is the system monitoring dashboard for the terminal, graphically representing the system resources. It provides users with detailed information about memory, disk usage, and CPU utilization. It also shows the currently running processes with CPU consumption and disk usage. In this guide, we’ll go over the complete steps for installing the Gtop on Linux Mint 21.

How to Install Gtop on Linux Mint21

Gtop is an ideal software for Linux because of its best monitoring interface; it provides the output in different sections, making it easily audible for the users. Gtop is coded with node.js, so first, install Node and npm also known as Node Package Manager to install Gtop on your system.

Step 1: Install npm

Install npm on your device using nvm(Node Version Manager). Execute the below command to install nvm:

$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash

Next, install the node through the below command:

$ nvm install node

Once installed, verify the version of npm:

$ npm --version

Step 2: Install Gtop using npm

After installing the latest version of npm, run the below command to install Gtop on your system:

$ npm install gtop -g

How to Use Gtop on Linux Mint 21

Once installation is completed, run the following command to launch the Gtop. when you enter the below command, the system monitoring will immediately start showing your system usage and information of all the processes:

$ gtop

Gtop provides you with an effective summary of your system which is divided into different sections:

1: CPU History: It provides the user a graph of the CPU usage over the last 60 seconds

2: Memory and Swap History:  Information related to your Swap and main memory

3: Network History: Displays the system’s network traffic information in bytes- per seconds

4: Disk Usage: It is memory that is currently in use

5: Processes: In this section, the currently running tasks with their CPU consumption are displayed

If you want to find any process in the Gtop, click on Search and then choose Find. Type the name of the process you want to search and it will be highlighted under the Processes section:

Press Ctrl + C to return to the terminal.

How to Remove Gtop on Linux Mint 21

Run the following command in the terminal to uninstall the Gtop from Linux Mint 21:

$ npm remove gtop -g

Bottom Line

Gtop has superiority over other monitoring systems in the Linux. It is easily accessible to users because of its user-friendly interface. The procedure of installing and using Gtop has been discussed in detail in this guide. By following the above steps carefully, you will have this system monitoring tool on your Linux Mint 21.

About the author

Zainab Rehman

I'm an author by profession. My interest in the internet world motivates me to write for Linux Hint and I'm here to share my knowledge with others.