2025-03-14 21:59:59 -06:00
|
|
|
# dstat
|
|
|
|
|
|
|
|
|
|
> Versatile tool for generating system resource statistics.
|
2025-12-16 10:20:31 -07:00
|
|
|
> Note: dstat is deprecated and no longer maintained.
|
|
|
|
|
> More information: <https://github.com/dstat-real/dstat>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display CPU, disk, net, paging and system statistics:
|
|
|
|
|
|
|
|
|
|
`dstat`
|
|
|
|
|
|
|
|
|
|
- Display statistics every 5 seconds and 4 updates only:
|
|
|
|
|
|
|
|
|
|
`dstat {{5}} {{4}}`
|
|
|
|
|
|
|
|
|
|
- Display CPU and memory statistics only:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`dstat {{[-c|--cpu]}} {{[-m|--mem]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List all available dstat plugins:
|
|
|
|
|
|
|
|
|
|
`dstat --list`
|
|
|
|
|
|
|
|
|
|
- Display the process using the most memory and most CPU:
|
|
|
|
|
|
|
|
|
|
`dstat --top-mem --top-cpu`
|
|
|
|
|
|
|
|
|
|
- Display battery percentage and remaining battery time:
|
|
|
|
|
|
|
|
|
|
`dstat --battery --battery-remain`
|