Caffeinate Your Mac to Keep it From Sleeping
There are some apps that keep your Mac from sleeping, but you don’t need them.
- Open a new Terminal window
- Type caffeinate, and press enter. It’s seriously that easy.
- Keep the Terminal window open, and press Control + C when you’re ready to close caffeinate.
There are a couple of things to consider before using this command. First, remember Apple makes your laptop sleep when the lid is closed for a reason and that’s to protect the screen. Same goes for all other hardware, this can be potentially unsafe if you don’t use it wisely, so use good judgement.
You can also add a sleep timer with the “-t” modifier. For example, “caffeinate -t 600” will keep your Mac from sleeping for 600 seconds (10 minutes). You can also use Hot Corners to do this, will talk about those in a bit.