Glances – CLI curses based monitoring tool for GNU/Linux

Sponsored Link
Glances is a CLI curses based monitoring tool for GNU/Linux and BSD OS.Glances uses the PsUtil library to get information from your system.It is developed in Python.

Install glances on ubuntu

Open the terminal and run the following commands

sudo apt-get install python-pip build-essential python-dev
sudo pip install Glances
sudo pip install PySensors

After installation you can start glances using the following command from your terminal




By default, stats are refreshed every second, to change this setting, you can
use the -t option. For example to set the refresh rate to 5 seconds:

$ glances -t 5

Importants stats are colored:

* GREEN: stat counter is "OK"
* BLUE: stat counter is "CAREFUL"
* MAGENTA: stat counter is "WARNING"
* RED: stat counter is "CRITICAL"

When Glances is running, you can press:

* ‘a' to set the automatic mode. The processes are sorted automatically

IF CPU IoWait > 60% sort by process "IO read and write"

If CPU > 70%, sort by process "CPU consumption"

If MEM > 70%, sort by process "memory size"

* ‘b' switch between bit/s or byte/s for network IO
* ‘c' sort the processes list by CPU consumption
* ‘d' disable or enable the disk IO stats
* ‘e' enable the sensors module (PySensors library is needed; Linux-only)
* ‘f' disable or enable the file system stats
* ‘h' to display a help message with the keys you can press and the limits
* ‘i' sort the processes list by IO rate (need root account on some OS)
* ‘l' disable or enable the logs
* ‘m' sort the processes list by process MEM
* ‘n' disable or enable the network interfaces stats
* ‘p' sort by process name
* ‘s' disable or enable the sensor stats (only available with -e tag)
* ‘w' delete finished warning logs messages
* ‘x' delete finished warning and critical logs messages
* ‘1' switch between global CPU and per core stats
* ‘q' Exit

Sponsored Link

You may also like...

3 Responses

  1. Al says:

    Cool article. I really like these types of articles,

  2. JoshFindit says:

    Interesting and potentially handy, but so much CPU usage!

  3. Meow says:

    Excellent tool

Leave a Reply

Your email address will not be published. Required fields are marked *