How to Install caffeine in Ubuntu

Imagine you are watching something on YouTube or reading a news article and suddenly Ubuntu locks your screen, I know that is very annoying. It happens with many of us, so Caffeine is the tool that will help you block the Ubuntu lock screen or screensaver.

Install caffeine by entering the following commands in the terminal:

$sudo apt update
$sudo apt install caffeine