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 12:36:05 -08:00
|
|
|
# caffeinate
|
|
|
|
|
2021-08-15 19:59:09 +02:00
|
|
|
> Prevent macOS from sleeping.
|
2024-01-31 07:20:27 -03: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 12:36:05 -08: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 12:36:05 -08: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 12:36:05 -08: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 12:36:05 -08:00
|
|
|
|
2022-02-14 03:21:43 -08:00
|
|
|
`caffeinate -s "{{command}}"`
|
2017-12-01 06:59:56 +00:00
|
|
|
|
2023-09-23 11:36:18 -04:00
|
|
|
- Prevent from sleeping until a process with the specified PID completes:
|
|
|
|
|
|
|
|
`caffeinate -w {{pid}}`
|
|
|
|
|
2025-03-07 14:02:32 +02:00
|
|
|
- Prevent from sleeping (use `<Ctrl c>` to exit):
|
2017-12-01 06:59:56 +00:00
|
|
|
|
|
|
|
`caffeinate -i`
|
2022-10-21 09:49:50 +05:30
|
|
|
|
2025-03-07 14:02:32 +02:00
|
|
|
- Prevent disk from sleeping (use `<Ctrl c>` to exit):
|
2022-10-21 09:49:50 +05:30
|
|
|
|
|
|
|
`caffeinate -m`
|