caffeinate command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
caffeinate: command not found
or when using sudo you get the following error message
sudo: caffeinate: command not found
Solutions to caffeinate: command not found
How To Fix caffeinate: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu caffeinate is provided by caffeine package.
caffeine is:
Caffeine prevents the desktop from becoming idle when an application is running full-screen. A desktop indicator ‘caffeine-indicator’ supplies a manual toggle, and the command ‘caffeinate’ can be used to prevent idleness for the duration of any command.
To fix this problem, we can install more using the command below.
sudo apt-get -y install caffeine
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install caffeine.
sudo apt -y install caffeine
Or if you have aptitude installed you can use the following command.
sudo aptitude install caffeine
Summary
In this tutorial we learn how to fix caffeinate command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.