dstat command

LINUX-Frequently used commands

dstat command Display the contents of a file
dstat  [Option] 
Dstat is a command that can display CPU load by core, IO load by disk, and network transfer rate by interface.
Resources that are monitored using top, iostat, and netstat can be monitored with a single command.
Frequently used options
-t Display the time.
-c Displays the percentage of CPU time used.
-m Display memory status
-vm Displays the status of virtual memory usage.
-s Displays the status of the swap usage.
-g Displays the number of page inputs and outputs.
-d Display the status of the disk
-r Number of read/write requests to disk (IOPS)
-i Displays the status of interrupt processing.
-l Display load average status
-p Display the status of the process.
-y Display system status
-lock Show file lock status..
-n Display network status
-ipc Displays the status of interprocess communication.
-unix Display the status of UNIX domain sockets
-tcp Display the number of bytes in TCP communication
-udp Display the number of bytes in UDP communication.
--float Include the decimal point in the display.
--noheaders Make the header display only once
Example: Network and disk status.
# dstat  -Tclmdrnt

Example: Show CPU and memory related
# dstat  -Tclm

Example: View CPU usage by core.
# dstat  -c -C 0,1,total

Example: Output the execution result log to a file.
# dstat  --output dstat.csv
Copied title and URL