• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

dstat: command not found

by Deepika

The dstat application is not commonly installed. It will need to be installed with your package manager. It requires Python 2.2 and above, which is installed by default on modern Linux systems:

# apt-get install dstat
# yum install dstat

The dstat application displays disk, network, memory usage, and running task information at regular intervals. The default output gives you an overview of the system activity. By default, this report is updated every second on a new line, allowing easy comparison with previous values.

The default output lets you track overall system activity. The application supports more options to track top resource users.

If you encounter the below error while running the command dstat:

dstat: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install dstat
Ubuntu apt-get install dstat
Arch Linux pacman -S dstat
Kali Linux apt-get install dstat
CentOS yum install dstat
Fedora dnf install dstat
Raspbian apt-get install dstat

dstat Command Examples

1. Display CPU, disk, net, paging and system statistics:

# dstat

2. Display statistics every 5 seconds and 4 updates only:

# dstat 5 4

3. Display CPU and memory statistics only:

# dstat --cpu --mem

4. List all available dstat plugins:

# dstat --list

5. Display the process using the most memory and most CPU:

# dstat --top-mem --top-cpu

6. Display battery percentage and remaining battery time:

# dstat --battery --battery-remain

Filed Under: Linux

Some more articles you might also be interested in …

  1. Linux / UNIX : How to send mails with attachments using mailx command
  2. auracle Command Examples
  3. Getting info with the vsish command (esxi only)
  4. CentOS / RHEL 7 : How to configure kdump
  5. dmenu: command not found
  6. How to check change log of RPM packages on CentOS/RHEL
  7. How To Disable Ksplice Service on OEL
  8. “cannot install the best update candidate for package” – error on running dnf update
  9. ifrename: command not found
  10. Manual Changes Made To /etc/hosts Or /etc/sysconfig/network-scripts/ifcfg-* Are Lost

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright