Skip to content

caffeinate - prevent macOS from sleeping — by SS64.com

beginnerpageLink only (©)

Reference for caffeinate, which keeps a Mac awake while a command runs or for a set time. Flags: -d display, -i idle sleep, -m disk, -s system on AC, -u user active, -t seconds, -w until a PID exits.

Quick steps

  1. caffeinate -u -t 3600
  2. caffeinate -i make

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on ss64.com

Source: caffeinate - prevent macOS from sleeping by SS64.com. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

caffeinatesleepterminalmacos

More in macOS

Gatekeeper - Permanently Resetting Quarantine — by jdag and KALLT on MacRumors Forums

intermediateforum

Thread from 2016 where the poster uses xattr -d -r com.apple.quarantine /Applications/APPNAME.app to strip the flag recursively. KALLT notes each download gets a unique quarantine flag, suggests right-click and Open instead, and says an app Gatekeeper reports as tampered with should be raised with its developer. Removing quarantine bypasses Gatekeeper's check, so only do it for software you trust.