Home Monitoring Tools Gotop – Yet Another TUI Graphical Activity Monitor, Written In Go

Gotop – Yet Another TUI Graphical Activity Monitor, Written In Go

By sk
Published: Last Updated on 6.2K views

Most of you already know about "top" command, don't you? Yes, It provides dynamic real-time information about running processes in any Unix-like operating systems. A few developers have built graphical front-ends for top command, so the users can easily find out their system's activity in a graphical window. One of them is Gotop. As the name implies, Gotop is a TUI graphical activity monitor, written in Go language. It is completely free, open source and inspired by gtop and vtop programs.

In this brief guide, we are going to discuss how to install and use Gotop program to monitor a Linux system's activity.

Install Gotop in Linux

Gotop is written using Go, so we need to install it first. To install Go programming language in Linux, refer the following guide.

After installing Go, run the following command to install Gotop:

$ go get github.com/cjbassi/gotop

This command will download gotop binary and save it inside go/bin folder in your current working directory. Just make the binary executable and copy it to your $PATH.

$ chmod +x go/bin/gotop
$ sudo cp go/bin/gotop /usr/local/bin/

Alternatively, there is a script to download the prebuilt gotop binary to your system. This script will download the correct binary for your system from the releases page. It doesn't require you to install Go.

Clone the repository using command:

$ git clone --depth 1 https://github.com/cjbassi/gotop /tmp/gotop

Run the script to download the gotop binary:

$ /tmp/gotop/scripts/download.sh

The above command will download gotop binary to your current working directory. Make it executable and move to your $PATH as shown below.

$ chmod +x gotop
$ sudo cp gotop /usr/local/bin

If you're using Arch-based systems, Gotop is available in AUR, so you can install it using any AUR helper programs.

Using Yay:

$ yay -S gotop-bin

Monitor Linux System's Activity using Gotop Activity Monitor

Gotop usage is easy! All you have to do is to run the following command from the Terminal.

$ gotop

There you go! You will see the usage of your system's CPU, disk, memory, network, cpu temperature and process list in a simple TUI window.

Monitor a Linux system's activity using Gotop
Monitor a Linux system's activity using Gotop

To show only CPU, Mem and Process widgets, use -m flag like below.

$ gotop -m
Gotop interface in Linux
Gotop interface in Linux

You can sort the process table by using the following keyboard shortcuts.

  • c - CPU
  • m - Mem
  • p - PID

For process navigation, use the following keys.

  • UP/DOWN arrows or j/k keys to go up and down.
  • Ctrl-d and Ctrl-u  - up and down half a page.
  • Ctrl-f and Ctrl-b - up and down a full page.
  • gg and G  - jump to top and bottom.

Press <TAB> to toggle process grouping. To kill the selected process or process group, type dd. To select a process, just click on it. To scroll down/up, use the mouse scroll button. To zoom in and zoom out CPU and memory graphs, use h and l. To display the help menu at anytime, just press ?.

And, that's all for now. Hope this helps.


You May Also Like


simple mind April 12, 2018 - 11:44 am

I will give it a try. But what terminal are you using? It looks like you could open multiple tabs!

sk April 12, 2018 - 8:54 pm

Deepin Terminal.

Juan Simón April 12, 2018 - 6:28 pm Reply
sk April 13, 2018 - 12:01 pm

Thanks. I corrected it now.

dcc0928 July 13, 2018 - 7:37 am

I receive 404 error as of 7/12/2018

sk July 13, 2018 - 12:48 pm

Thanks for the update. It works now.

Bobi February 3, 2019 - 6:23 pm

This command doesn`t work: sh -c “$(curl https://raw.githubusercontent.com/cjbassi/gotop/master/download.sh)”
I receive 404:: not found

sk February 7, 2019 - 2:10 pm

Thanks for pointing it out. I just updated the installation instructions. It should work now.


Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. By using this site, we will assume that you're OK with it. Accept Read More