How to Install Glances on Ubuntu 20.04

Install Glances on Ubuntu 20.04

 In this article, we will have explained the necessary steps to install and configure Glances on Ubuntu 20.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Glances is a real-time system monitoring tool written in Python language. It monitors system resources, including CPU, Memory, Load, Disk I/O, Processes, File System space, Network interface, and more. Glance supports any major platform having python installed such as Windows, macOS, Linux, FreeBSD, and Android.

Install Glances on Ubuntu 20.04

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade

Step 2. Install Glances on the Ubuntu system.

  • Installing Glances from the default Ubuntu repository.

Run the following command to install it:

sudo apt install glances
  • Glances via Snap.

Install using the command line:

sudo snap install glances
  • Install Glances from the official repository.

Run the following installation script provided by Glances official team:

curl -L | /bin/bash

Step 3. Accessing Glances.

Once this Linux system monitoring tool is installed on our system, you can start using it by just type the below command in your terminal:


You will see an output like the following:

Install Glances on Ubuntu 20.04

After running Glances, you can use the following keyboard shortcuts to display the information in a more orderly and clear way:

  • m: Sort processes by MEM%
  • p: Sort processes by name
  • c: Sort processes by CPU%
  • i: Sort processes by I/O rate
  • s: Show/hide sensors stats
  • n: Show/hide network stats
  • x: Delete warning and critical logs
  • d: Show/hide disk I/O stats
  • a: Sort Processes automatically
  • f: Show/hide file system statshddtemp
  • y: Show/hide hddtemp stats
  • l: Show/hide logs
  • h: Show/hide help screen
  • q: Quit
  • w: Delete warning logs

That’s all you need to do to install the Glances monitoring tool on Ubuntu 20.04 LTS Focal Fossa. I hope you find this quick tip helpful. For further reading on Install Glances, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.