Linux Command to make computer go to Sleep



You can tell the computer to go to sleep by executing the following command from a terminal

systemctl suspend

The computer should immediately go to sleep.

Sleep with delay

If you would like to add a delay you can do the following. Replace 5 with the number of seconds you want to wait.

sleep 5 && systemctl suspend

Leave a Reply