mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
35 lines
736 B
Plaintext
35 lines
736 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# dstat
|
|
|
|
> Versatile tool for generating system resource statistics.
|
|
> Note: dstat is deprecated and no longer maintained.
|
|
> More information: <https://github.com/dstat-real/dstat>.
|
|
|
|
- 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:
|
|
|
|
`dstat {{[-c|--cpu]}} {{[-m|--mem]}}`
|
|
|
|
- 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`
|