dstat command not found

In this troubleshooting guide we learn how to fix dstat command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

dstat: command not found

or when using sudo you get the following error message

sudo: dstat: command not found

Solutions to dstat: command not found

How To Fix dstat: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dstat is provided by dstat package.

dstat is:

Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat overcomes some of the limitations of these programs and adds some extra features.

Dstat allows you to view all of your network resources instantly, you can for example, compare disk usage in combination with interrupts from your IDE controller, or compare the network bandwidth numbers directly with the disk throughput (in the same interval).

Dstat also cleverly gives you the most detailed information in columns and clearly indicates in what magnitude and unit the output is displayed.

Dstat is also unique in letting you aggregate block device throughput for a certain diskset or network bandwidth for a group of interfaces, i.e. you can see the throughput for all the block devices that make up a single filesystem or storage system.

Dstat’s output, in its current form, is not suited for post-processing by other tools, it’s mostly meant for humans to interpret real-time data as easy as possible.

To fix this problem, we can install more using the command below.

sudo apt-get -y install dstat

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install dstat.

sudo apt -y install dstat

Or if you have aptitude installed you can use the following command.

sudo aptitude install dstat

Summary

In this tutorial we learn how to fix dstat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.