glances(1)
A cross-platform system monitoring tool that displays real-time CPU, memory, disk, and network statistics in a curses-based dashboard.
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
| Flag | What it does |
|---|---|
-c, --client HOSTNAME | Connect to a remote Glances server for monitoring |
-s, --server | Start Glances in server mode for remote access |
-w, --webserver | Start Glances as a web server (default port 61208) |
-b, --byte | Display disk I/O values in bytes instead of bits |
-d, --debug | Enable debug mode with verbose logging |
-f FILE, --file FILE | Export stats to JSON or CSV file |
-t SECONDS, --time SECONDS | Set the refresh interval in seconds (default 2) |
-p PORT, --port PORT | Specify the port for server or web server mode |
--disable-plugin PLUGIN | Disable a specific plugin (e.g., docker, sensors) |
-1, --percpu | Display per-CPU statistics instead of average |
Examples
Start Glances in standalone mode with default 2-second refresh rate
glancesRun Glances with a 5-second refresh interval for lower CPU usage
glances -t 5Start Glances server on port 5555 for remote monitoring
glances -s -p 5555Connect to a remote Glances server running on 192.168.1.100:5555
glances -c 192.168.1.100 -p 5555Start Glances web interface on port 8080 for browser access
glances -w -p 8080Export system statistics to JSON file every 10 seconds
glances -f /tmp/stats.json -t 10Display per-CPU statistics instead of overall CPU average
glances -1Run Glances without the Docker plugin to reduce overhead
glances --disable-plugin docker