The output from dstat is very colorful. Obtain a few samples with these steps:
- Display default information with this command:
dstat
- Display only system load and network activity with this command:
dstat -n -l
- Display CPU usage, I/O, and disk utilization averaged over 5 second intervals with this command:
dstat -c -r --disk-util 5
- For the next 10 seconds, display the time, memory usage, interrupts and context switches, disk activity from only the sda device, and the process using the most I/O. In addition, capture the results to a csv file, all with this command:
dstat -tmyd -D sda --top-io --output /tmp/stats.csv 1 10