idlestat command not found

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

Introduction

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

idlestat: command not found

or when using sudo you get the following error message

sudo: idlestat: command not found

Solutions to idlestat: command not found

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

In Ubuntu idlestat is provided by idlestat package.

idlestat is:

Idlestat uses kernel FTRACE function to monitor and capture C-state and P-state transitions of CPUs over a time interval. It calculates the total, average, min and max times spend in each C-state, P-state for each CPU and in each CPU cluster. It also reports the times specific IRQs caused the CPU to exit idle state, per CPU and per-IRQ.

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

sudo apt-get -y install idlestat

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

You can also use apt command to install idlestat.

sudo apt -y install idlestat

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

sudo aptitude install idlestat

Summary

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