A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
# caffeinate
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Prevent macOS from sleeping.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/caffeinate.8.html>.
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2017-12-01 06:59:56 +00:00
|
|
|
- Prevent from sleeping for 1 hour (3600 seconds):
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2017-12-01 06:59:56 +00:00
|
|
|
`caffeinate -u -t {{3600}}`
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2017-12-01 06:59:56 +00:00
|
|
|
- Prevent from sleeping until a command completes:
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
|
2022-02-14 11:21:43 +00:00
|
|
|
`caffeinate -s "{{command}}"`
|
2017-12-01 06:59:56 +00:00
|
|
|
|
2023-09-23 16:36:18 +01:00
|
|
|
- Prevent from sleeping until a process with the specified PID completes:
|
|
|
|
|
|
|
|
`caffeinate -w {{pid}}`
|
|
|
|
|
2022-10-21 05:19:50 +01:00
|
|
|
- Prevent from sleeping (use `Ctrl + C` to exit):
|
2017-12-01 06:59:56 +00:00
|
|
|
|
|
|
|
`caffeinate -i`
|
2022-10-21 05:19:50 +01:00
|
|
|
|
|
|
|
- Prevent disk from sleeping (use `Ctrl + C` to exit):
|
|
|
|
|
|
|
|
`caffeinate -m`
|