Linux command
glances 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start glances
glances
Web server mode
glances -w
Client mode
glances -c [server-ip]
Export to CSV
glances --export csv --export-csv-file [output.csv]
Per-CPU stats
glances -1 -t 5
Server mode
glances -s -p [61210]
Quiet mode
glances -q
说明
glances is a cross-platform system monitoring tool. It displays real-time CPU, memory, disk, network, and process information in a comprehensive terminal interface. The tool provides more information than top or htop in a single view. It supports client-server mode, a web interface, and exports to various formats for monitoring and analysis.
参数
- -w, --webserver
- Start web server.
- -c _SERVER_, --client _SERVER_
- Connect to server.
- -s, --server
- Start server mode.
- -t _SECONDS_
- Refresh time.
- --export _FORMAT_
- Export to format.
- -p _PORT_, --port _PORT_
- TCP port for client/server/web mode (default: 61209).
- -1, --percpu
- Display per-CPU stats instead of aggregated.
- -b, --byte
- Display network I/O in bytes per second instead of bits.
- -q, --quiet
- No display, background.
- --disable-plugin _PLUGIN_
- Disable a specific plugin (e.g., docker, gpu).
- --stdout _STATS_
- Display stats to stdout (comma-separated list).
- --help
- Display help information.
FAQ
What is the glances command used for?
glances is a cross-platform system monitoring tool. It displays real-time CPU, memory, disk, network, and process information in a comprehensive terminal interface. The tool provides more information than top or htop in a single view. It supports client-server mode, a web interface, and exports to various formats for monitoring and analysis.
How do I run a basic glances example?
Run `glances` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -w, --webserver do in glances?
Start web server.