cpu command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
cpu: command not found
or when using sudo you get the following error message
sudo: cpu: command not found
Solutions to cpu: command not found
How To Fix cpu: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu cpu is provided by cpu package.
cpu is:
CPU is a suitable replacement for the useradd/usermod/userdel utilities for administrators using an LDAP backend and wishing to have a suite of command line tools for doing the administration.
To fix this problem, we can install more using the command below.
sudo apt-get -y install cpu
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install cpu.
sudo apt -y install cpu
Or if you have aptitude installed you can use the following command.
sudo aptitude install cpu
Summary
In this tutorial we learn how to fix cpu command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.