tldr/pages/osx/caffeinate.md

17 lines
334 B
Markdown
Raw Permalink Normal View History

# caffeinate
> Prevent macOS from sleeping.
> More information: <https://ss64.com/osx/caffeinate.html>.
2017-12-01 06:59:56 +00:00
- Prevent from sleeping for 1 hour (3600 seconds):
2017-12-01 06:59:56 +00:00
`caffeinate -u -t {{3600}}`
2017-12-01 06:59:56 +00:00
- Prevent from sleeping until a command completes:
2022-02-14 11:21:43 +00:00
`caffeinate -s "{{command}}"`
2017-12-01 06:59:56 +00:00
- Prevent from sleeping until you type Ctrl-C:
`caffeinate -i`