diskdevstat command not found

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

Introduction

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

diskdevstat: command not found

or when using sudo you get the following error message

sudo: diskdevstat: command not found

Solutions to diskdevstat: command not found

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

In Ubuntu diskdevstat is provided by tuned-utils-systemtap package.

tuned-utils-systemtap is:

The tuned package contains a daemon that tunes system settings dynamically. It does so by monitoring the usage of several system components periodically. Based on that information components will then be put into lower or higher power saving modes to adapt to the current usage. Currently only ethernet network and ATA harddisk devices are implemented.

This package contains several systemtap scripts to allow detailed manual monitoring of the system. Instead of the typical IO/sec it collects minimal, maximal and average time between operations to be able to identify applications that behave power inefficient (many small operations instead of fewer large ones).

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

sudo apt-get -y install tuned-utils-systemtap

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

You can also use apt command to install tuned-utils-systemtap.

sudo apt -y install tuned-utils-systemtap

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

sudo aptitude install tuned-utils-systemtap

Summary

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