Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-15 00:18:14 +00:00
parent 605e1cdfd8
commit 367b1e4cb2
7 changed files with 56 additions and 23 deletions

View File

@@ -17,26 +17,26 @@ source: https://github.com/tldr-pages/tldr.git
`tldr {{command}} {{subcommand}}`
- Print the tldr page for a command in the given [L]anguage (if available, otherwise fall back to English):
- Print the tldr page for a command in the given language (if available, otherwise fall back to English):
`tldr --language {{language_code}} {{command}}`
`tldr {{[-L|--language]}} {{language_code}} {{command}}`
- Print the tldr page for a command from a specific [p]latform:
- Print the tldr page for a command from a specific platform:
`tldr --platform {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}`
`tldr {{[-p|--platform]}} {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}`
- [u]pdate the local cache of tldr pages:
- Update the local cache of tldr pages:
`tldr --update`
`tldr {{[-u|--update]}}`
- [l]ist all pages for the current platform and `common`:
- List all pages for the current platform and `common`:
`tldr --list`
`tldr {{[-l|--list]}}`
- [l]ist all available subcommand pages for a command:
- List all available subcommand pages for a command:
`tldr --list | grep {{command}} | column`
`tldr {{[-l|--list]}} | grep {{command}} | column`
- Print the tldr page for a random command:
`tldr --list | shuf -n1 | xargs tldr`
`tldr {{[-l|--list]}} | shuf {{[-n|--head-count]}} 1 | xargs tldr`