time command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
time: command not found
or when using sudo you get the following error message
sudo: time: command not found
Solutions to time: command not found
How To Fix time: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu time is provided by time package.
time is:
The ’time’ command runs another program, then displays information about the resources used by that program, collected by the system while the program was running. You can select which information is reported and the format in which it is shown, or have ’time’ save the information in a file instead of display it on the screen.
The resources that ’time’ can report on fall into the general categories of time, memory, I/O, and IPC calls.
The GNU version can format the output in arbitrary ways by using a printf-style format string to include various resource measurements.
To fix this problem, we can install more using the command below.
sudo apt-get -y install time
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install time.
sudo apt -y install time
Or if you have aptitude installed you can use the following command.
sudo aptitude install time
Summary
In this tutorial we learn how to fix time command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.