1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 02:18:01 +01:00
tldr/pages/osx/caffeinate.md

16 lines
270 B
Markdown
Raw Normal View History

# caffeinate
2017-12-01 07:59:56 +01:00
> Prevent mac from sleeping.
2017-12-01 07:59:56 +01:00
- Prevent from sleeping for 1 hour (3600 seconds):
2017-12-01 07:59:56 +01:00
`caffeinate -u -t {{3600}}`
2017-12-01 07:59:56 +01:00
- Prevent from sleeping until a command completes:
`caffeinate -s {{command}}`
2017-12-01 07:59:56 +01:00
- Prevent from sleeping until you type Ctrl-C:
`caffeinate -i`