caffeinate
Caffeinate is a command line tool for macOS that prevents the system from going to sleep or turning off the display. It was introduced in Mac OS X Lion (10.7) as part of the caffeination suite, aiming to keep the system awake during specific processes. The caffeinate command is used to invoke this tool, and it can be used with different options to modify its behavior. By default, caffeinate prevents the system from going to sleep until it is manually interrupted or the command is terminated. It can be combined with other commands or scripts to keep the system awake for specific tasks, such as long downloads or batch processing. Caffeinate can also prevent the display from sleeping, ensuring continuous visibility. The tool offers various options like specifying the time duration to keep the system awake or defining system power events after which the caffeinate operation should cease. Caffeinate provides additional control over the idle sleep timer, enabling users to specify the time threshold for system inactivity. Overall, caffeinate is a useful command line tool that helps users manage system sleep and display settings to ensure uninterrupted operation.
List of commands for caffeinate:
-
caffeinate:tldr:37eb7 caffeinate: Prevent from sleeping for 1 hour (3600 seconds).$ caffeinate -u -t ${3600}try on your machineexplain this command
-
caffeinate:tldr:59abc caffeinate: Prevent from sleeping until a command completes.$ caffeinate -s "${command}"try on your machineexplain this command
-
caffeinate:tldr:c4dfa caffeinate: Prevent from sleeping (use `Ctrl + C` to exit).$ caffeinate -itry on your machineexplain this command
-
caffeinate:tldr:cc87d caffeinate: Prevent disk from sleeping (use `Ctrl + C` to exit).$ caffeinate -mtry on your machineexplain this command
-
caffeinate:tldr:e2354 caffeinate: Prevent desktop from sleeping (use `Ctrl + C` to exit).$ caffeinatetry on your machineexplain this command