When you work on Linux server or on your personal computer, you can need sometimes to monitor the different processes in progress. This can be done with some commands but the result sometimes appears with numbers without a graph on your terminal. It exists a new tool gtop which can display your processes dynamically in graphic mode on your Linux terminal.
What is gtop?
gtop is a tool which reads information about processes and the state of the system in dynamic mode. As its name, we can think that it is a graphic top command. It contains some views to monitor your cpu, memory, swap, disk and network usage with a percentage and graphical representation. It also shows you the path of the commands in progress
1) Install gtop
To be able to use gtop, we should first need to install nodejs
On centos 7
# yum install epel-release
# yum install nodejs
On Ubuntu 16
# apt install nodejs-legacy
# apt install npm
Now you can install gtop as below
# npm install gtop -g
2) Use gtop to monitor the processes
Now that we have installed it, you can launch it by typing
You can see that it shows you processes with the graph on your terminal. You can use your keyboard to scroll the different processes listed there.
gtop offers the advantage to sort the process
- by pid with
- by cpu used with
- by memory used with
To exit gtop, you can use
echap command. You can see a percentage and graphical representation of the utilization in progress.
Read also :
- gotop - A Tool to Monitor System Activity in Linux
- 30 Linux TOP Command Usage Examples for Monitoring
gtop offers the possibility to see all the processes currently in progress execution. It acts like top command but it offers a graphic mode which is more interesting. During my tests, I was not able to act on the processes listed as kill a process or use other commands than those shown earlier.