caffeinate
Prevent desktop from sleeping. tldr-pages
On Linux, macOS
Linux
Prevent desktop from sleeping (use <Ctrl c> to exit)
caffeinateIdentifymacOS
Prevent macOS from sleeping.
Prevent the display from sleeping
caffeinate -dIdentifyPrevent from sleeping for 1 hour (3600 seconds)
caffeinate -u -t 3600IdentifyFork a process, exec "make" in it, and prevent sleep as long as that process is running
caffeinate -i makeIdentifyPrevent from sleeping until a process with the specified PID completes
caffeinate -w process_idIdentifyPrevent disk from sleeping (use <Ctrl c> to exit)
caffeinate -mIdentify