To open the Terminal, you can either open the Applications > Utilities folder and double-click it from there, or invoke Spotlight with Command+Space and search for it. Once the Terminal is open, simply type caffeinate , press Enter, and your Mac will stay awake for as long as you leave the Terminal running.
Does caffeinate work Mac?
Caffeinate and How to Use It
While running, caffeinate will prevent your Mac from sleeping. To stop the process from running, you can press Ctrl+C which will instantly end the process, and return you to the command prompt. While running, caffeinate will leave a blank prompt.
What does caffeinate do?
Caffeine is a natural stimulant most commonly found in tea, coffee, and cacao plants. It works by stimulating the brain and central nervous system, helping you stay alert and prevent the onset of tiredness.
Click on the Apple menu on the top left of your screen and select System Preferences. Open Energy Saver by clicking on the light bulb icon. Check the Prevent computer from sleeping automatically when the display is off box.