Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-20 00:20:24 +00:00
parent a746c9d8f6
commit 53cdffdca8
17 changed files with 373 additions and 22 deletions

View File

@@ -8,22 +8,22 @@ source: https://github.com/tldr-pages/tldr.git
> Prevent macOS from sleeping.
> More information: <https://keith.github.io/xcode-man-pages/caffeinate.8.html>.
- Prevent the display from sleeping:
`caffeinate -d`
- Prevent from sleeping for 1 hour (3600 seconds):
`caffeinate -u -t {{3600}}`
- Prevent from sleeping until a command completes:
- Fork a process, exec "make" in it, and prevent sleep as long as that process is running:
`caffeinate -s "{{command}}"`
`caffeinate -i make`
- Prevent from sleeping until a process with the specified PID completes:
`caffeinate -w {{pid}}`
- Prevent from sleeping (use `<Ctrl c>` to exit):
`caffeinate -i`
- Prevent disk from sleeping (use `<Ctrl c>` to exit):
`caffeinate -m`