powerstat command not found

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

Introduction

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

powerstat: command not found

or when using sudo you get the following error message

sudo: powerstat: command not found

Solutions to powerstat: command not found

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

In Ubuntu powerstat is provided by powerstat package.

powerstat is:

Powerstat measures the power consumption of a mobile PC that has a battery power source. The output is like vmstat but also shows power consumption statistics. At the end of a run, powerstat will calculate the average, standard deviation and min/max of the gathered data.

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

sudo apt-get -y install powerstat

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

You can also use apt command to install powerstat.

sudo apt -y install powerstat

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

sudo aptitude install powerstat

Summary

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