caffeinate
. Open Terminal (located in /Applications/Utilities/
), type in caffeinate
, and press return ↩︎.caffeinate
command, press ^ ControlC.caffeinate -w <the Process ID of the download>
for this. caffeinate
command makes your computer unable to fall asleep (although your display may), -w
option makes it wait for a process to finish and before then your computer cannot fall sleep, which is exactly what you wanted to do.caffeinate -w 4708
, replace the number with the PID you found.caffeinate -w $(pidof <name of process>)
instead, this will find the ID of the process you name each time (as PID is assigned by the system and will change each time you run it)caffeinate -t <number of seconds>
: your download may not finish in a certain amount of time, in that case the goal is not achieved; or it may finish really quickly, in that case you would be wasting energy.