Brainstorm's snippets (1/261)

  Prevent Mac from falling asleep

The caffeinate command in terminal keeps the Mac from falling asleep.

For indefinite:

caffeinate

For a specific time, eg 5 hours:

caffeinate -t 18000