dstat Command in Linux With Examples Last Updated : 22 Oct, 2024 Comments Improve Suggest changes Like Article Like Report 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. Installation of dstat command1. On RedHat based OS yum install dstat2. On ubuntu or debian sudo apt install dstatWorking with dstat Command1. To display statistics of major OS components dstatThis command will display CPU, Disk, Network, Paging and System stats. 2. To display information that was to be displayed by vmstat tool dstat --vmstat The above command results in the process and memory stats. 3. To display stats of process using most of the CPU. dstat -c --top-cpuThis will display the stats of the process which is consuming most of the CPU. 4. To display stats of process using most of the memory. dstat -d --top-memThis will display the stats of the process which is consuming most of the memory. 5. To display the list of all plugins dstat --list Plugins are the options you want to display the stats of. The above command will list all such plugins. 6. To force float values to be printed dstat --floatThis will force the float values to be printed which were hidden earlier. 7. To force bits values to be printed. dstat --bitsThis will print all the values in bits that were earlier used to be printed in bytes. 8. To display the output without colors dstat --nocolorThis command will now display the outputs in white color only. 9. To get all stats of the processes. dstat -aThis command will display all the stats of the processes. 10. To display help dstat --helpThis will display the help section of the dstat command.ConclusionThe 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. Comment More infoAdvertise with us manav014 Follow Improve Article Tags : Technical Scripter Linux-Unix linux-command Linux-networking-commands Linux-system-commands +1 More Similar Reads df Command in Linux with Examples There might come a situation while using Linux when you want to know the amount of space consumed by a particular file system on your LINUX system or how much space is available on a particular file system. LINUX being command friendly provides a command line utility for this i.e. 'df' command that 9 min read How to Compare Files Line by Line in Linux | diff Command In the world of Linux, managing and comparing files is a common task for system administrators and developers alike. The ability to compare files line by line is crucial for identifying differences, debugging code, and ensuring the integrity of data. One powerful tool that facilitates this process i 9 min read diff3 command in Linux with examples diff3 command is used to compare the three files line by line. It internally uses the diff command to compare. When three files are compared then the following output may come which have their own meaning: ==== : It means all the files are different. ====1 : File 1 is different. ====2 : File 2 is di 3 min read dir command in Linux with examples The dir command in Linux is used to list the contents of a directory, providing an overview of the files and folders within it. How is the dir command different from ls?dir command differs from the ls command in the format of listing contents that is in default listing options. By default, dir comma 5 min read Dirname Command in Linux with Examples dirname is a command in Linux that is used to remove the trailing forward slashes "/" from the NAME and print the remaining portion. If the argument NAME does not contain the forward slash "/" then it simply prints dot ".". In other words, we can say that the 'dirname' command is a useful tool for e 3 min read dirs command in Linux with examples dirs command shell builtin is used to display the list of currently remembered directories. By default, it includes the directory you are currently in. A directory can get into the list via pushd command followed by the dir name and can be removed via popd command. Syntax: dirs [-clpv] [+N] [-N] It 1 min read enable and disable command in Linux Enables and disables are the built-in shell commands. enable command is used to start the printers or classes whereas the disable command is used to stop the printers or classes. Syntax For enable Command: enable [-a] [-dnps] [-f filename][name ...] Syntax For disable Command: disable [-c] [-W] [ -r 1 min read dmesg command in Linux for driver messages dmesg command also called âdriver messageâ or âdisplay messageâ is used to examine the kernel ring buffer and print the message buffer of the kernel. The output of this command contains the messages produced by the device drivers.Usage of dmesg:When the computer boots up, there are lot of messages(l 5 min read dmidecode command in Linux with Examples The 'dmidecode' command, short for Desktop Management Interface table decoder, is a powerful utility in Linux that retrieves detailed information about your system's hardware components. This tool reads the DMI table and presents the data in a human-readable format, making it invaluable for system a 4 min read domainname Command in Linux With Examples domainname command in Linux is used to return the Network Information System (NIS) domain name of the host. You can use hostname -d command as well to get the host domainname. If the domain name is not set up in your host then the response will be "none". In networking terminology, the domain name i 3 min read Like