![]() |
VOOZH | about |
dstat is a tool that is used to retrieve information or statistics form components of the system such as network connections, IO devices, or CPU, etc. It is generally used by system administrators to retrieve a handful of information about the above-mentioned components of the system. It itself performs like vmstat, netstat, iostat, etc. By using this tool one can even see the throughput for block devices that make up a single filesystem or storage system.
yum install dstatsudo apt install dstatdstat👁 dstat command in Linux
This command will display CPU, Disk, Network, Paging and System stats.
dstat --vmstat 👁 vmstat-dstatThe above command results in the process and memory stats.
dstat -c --top-cpu👁 dtstat-most-cpu
This will display the stats of the process which is consuming most of the CPU.
dstat -d --top-mem👁 dstat-most-memThis will display the stats of the process which is consuming most of the memory.
dstat --list 👁 dstat-list-all-pluginsPlugins are the options you want to display the stats of. The above command will list all such plugins.
dstat --float👁 to-force-float-values-dstatThis will force the float values to be printed which were hidden earlier.
dstat --bits👁 to-force-bits-valuesThis will print all the values in bits that were earlier used to be printed in bytes.
dstat --nocolor👁 dstat-no-color-in-outputThis command will now display the outputs in white color only.
dstat -a👁 dstat-get-stat-of-all-processThis command will display all the stats of the processes.
dstat --help👁 dstat-help1
This will display the help section of the dstat command.
The dstat command is an invaluable tool for system administrators to monitor various components of the system in real-time. Its flexibility and ease of use make it an essential part of system performance analysis.