2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-15 06:12:59 +00:00
cheat.sheets/sheets/caffeinate

11 lines
215 B
Plaintext
Raw Normal View History

2017-06-04 20:46:53 +00:00
# caffeinate
# Prevent a system from sleeping (Mac OS X)
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:53 +00:00
# Prevent mac from sleeping for 1 hour (3600 seconds):
caffeinate -u -t 3600
2017-06-04 14:35:24 +00:00
2017-06-04 20:46:53 +00:00
# Prevent mac from sleeping until a command completes:
caffeinate -s command
2017-06-04 14:35:24 +00:00