$linuxjunkies
>

glances(1)

A cross-platform system monitoring tool that displays real-time CPU, memory, disk, and network statistics in a curses-based dashboard.

UbuntuDebianFedoraArch

Synopsis

glances [OPTIONS]

Description

Glances is a lightweight system monitor that provides an at-a-glance view of your Linux system's performance. It displays CPU usage, memory consumption, disk I/O, network traffic, process information, and system temperatures all in one terminal window, updating in real-time.

Colors indicate thresholds: green for normal, yellow for warning, and red for critical values. Glances can run in standalone mode, export data to files or databases, or operate as a client-server for remote monitoring.

Common options

FlagWhat it does
-c, --client HOSTNAMEConnect to a remote Glances server for monitoring
-s, --serverStart Glances in server mode for remote access
-w, --webserverStart Glances as a web server (default port 61208)
-b, --byteDisplay disk I/O values in bytes instead of bits
-d, --debugEnable debug mode with verbose logging
-f FILE, --file FILEExport stats to JSON or CSV file
-t SECONDS, --time SECONDSSet the refresh interval in seconds (default 2)
-p PORT, --port PORTSpecify the port for server or web server mode
--disable-plugin PLUGINDisable a specific plugin (e.g., docker, sensors)
-1, --percpuDisplay per-CPU statistics instead of average

Examples

Start Glances in standalone mode with default 2-second refresh rate

glances

Run Glances with a 5-second refresh interval for lower CPU usage

glances -t 5

Start Glances server on port 5555 for remote monitoring

glances -s -p 5555

Connect to a remote Glances server running on 192.168.1.100:5555

glances -c 192.168.1.100 -p 5555

Start Glances web interface on port 8080 for browser access

glances -w -p 8080

Export system statistics to JSON file every 10 seconds

glances -f /tmp/stats.json -t 10

Display per-CPU statistics instead of overall CPU average

glances -1

Run Glances without the Docker plugin to reduce overhead

glances --disable-plugin docker

Related commands