The dstat
command is a versatile tool used to monitor system resources in real-time. It combines the functionality of various monitoring tools and provides a comprehensive overview of system performance, including CPU usage, memory consumption, disk activity, and network statistics.
The basic syntax of the dstat
command is as follows:
dstat [options] [arguments]
-c
: Show CPU statistics.-d
: Display disk statistics.-n
: Show network statistics.-m
: Monitor memory usage.-t
: Include a timestamp in the output.--help
: Display help information about the command and its options.Here are some practical examples of using the dstat
command:
dstat -cd
dstat -cnm
dstat -tcdmn
dstat -d
dstat 10
-t
option to include timestamps, which can help correlate events with system performance.dstat > output.txt
.--help
to explore additional options and customize the output to your needs.