roger.tips
← All Tips
πŸ’»Mac⚑Productivity 1 min read

caffeinate: Keep Your Mac Awake with One Terminal Command

TL;DR
Your Mac falls asleep during a long download? One built-in Terminal command keeps it awake – for as long as you need.

caffeinate: Keep Your Mac Awake with One Terminal Command

How to do it

  1. Open Terminal (Cmd+Space β†’ type "Terminal").
  2. Type: caffeinate and press Enter.
  3. Done – your Mac will stay awake as long as the Terminal window is open.
  4. To stop: Press Ctrl+C in Terminal – your Mac will sleep normally again.

Useful variations

  • caffeinate -d β†’ Display stays on too (not just the system).
  • caffeinate -t 3600 β†’ Mac stays awake for exactly 1 hour (3600 seconds).
  • caffeinate -w 1234 β†’ Mac stays awake until process 1234 finishes (great for long-running scripts).

Why this helps

caffeinate is a built-in macOS tool that temporarily overrides power management. No download, no app – it's already on your Mac.

Perfect for: downloads, backups, long scripts, presentations, or anytime you don't want your Mac to fall asleep.

Fun fact: The name is a pun on caffeine – it keeps your Mac "caffeinated." β˜•

⚠️ Don't forget: Press Ctrl+C when you're done – otherwise your Mac will never sleep and your battery will drain.

Was this helpful?

Be the first to rate this tip!


WhatsApp