Files
tldr/pages.zh/linux/dstat.md

28 lines
557 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dstat
> 生成系统资源统计信息的多功能工具。
> 更多信息:<http://dag.wieers.com/home-made/dstat>。
- 显示 CPU、磁盘、网络、分页和系统统计信息
`dstat`
- 每 5 秒显示统计信息,仅更新 4 次:
`dstat {{5}} {{4}}`
- 仅显示 CPU 和内存统计信息:
`dstat --cpu --mem`
- 列出所有可用的 dstat 插件:
`dstat --list`
- 显示使用最多内存和最多 CPU 的进程:
`dstat --top-mem --top-cpu`
- 显示电池百分比和剩余电池时间:
`dstat --battery --battery-remain`