battery-log command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
battery-log: command not found
or when using sudo you get the following error message
sudo: battery-log: command not found
Solutions to battery-log: command not found
How To Fix battery-log: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu battery-log is provided by battery-stats package.
battery-stats is:
This package provides battery-stats-collector, a daemon which will periodically collect statistics about the charge of the batteries present.
It also provides a binary called battery-graph, which can be used to generate qplot graphs about the battery charge/discharge patterns over time.
Note: This requires APM or ACPI to be enabled and working in your kernel.
To fix this problem, we can install more using the command below.
sudo apt-get -y install battery-stats
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install battery-stats.
sudo apt -y install battery-stats
Or if you have aptitude installed you can use the following command.
sudo aptitude install battery-stats
Summary
In this tutorial we learn how to fix battery-log command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.