Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-16 00:19:59 +00:00
parent d5421f7c01
commit b18a761896
36 changed files with 451 additions and 40 deletions

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}`
- Start an activity matching a specific action and [c]ategory:
- Start an activity matching a specific [a]ction and [c]ategory:
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`

View File

@@ -21,13 +21,13 @@ source: https://github.com/tldr-pages/tldr.git
`atuin search {{command}}`
- Register an account on the default sync server using the specified [u]sername, [e]mail and [p]assword:
- Register an account on the default sync server using the specified username, email and password:
`atuin register -u {{username}} -e {{email}} -p {{password}}`
`atuin register {{[-u|--username]}} {{username}} {{[-e|--email]}} {{email}} {{[-p|--password]}} {{password}}`
- Login to the default sync server:
`atuin login -u {{username}} -p {{password}}`
`atuin login {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}`
- Sync history with the sync server:

View File

@@ -8,7 +8,7 @@ source: https://github.com/tldr-pages/tldr.git
> A fast and multi-purpose DNS toolkit to run multiple DNS queries.
> Note: Input to `dnsx` needs to be passed through `stdin` (pipe `|`) in some cases.
> See also: `dig`, `dog`, `dnstracer`.
> More information: <https://docs.projectdiscovery.io/tools/dnsx/running>.
> More information: <https://docs.projectdiscovery.io/opensource/dnsx/usage>.
- Query the A record of a (sub)domain and show [re]sponse received:

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# CD
> Change the current working directory.
> More information: <https://www.dosbox.com/wiki/Commands#CD_.28Change_Directory.29>.
> More information: <https://help.fdos.org/en/hhstndrd/command/cd.htm>.
- Go to the specified directory:

12
tldr/dos/chdir Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, dos]
source: https://github.com/tldr-pages/tldr.git
---
# CHDIR
> This command is an alias of `CD`.
- View documentation for the original command:
`tldr {{[-p|--platform]}} dos cd`

View File

@@ -6,16 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
# fnm
> Fast Node.js version manager.
> Install, uninstall or switch between Node.js versions.
> More information: <https://github.com/Schniz/fnm>.
> More information: <https://github.com/Schniz/fnm/blob/master/docs/commands.md>.
- Install a specific version of Node.js:
`fnm install {{node_version}}`
`fnm {{[i|install]}} {{node_version}}`
- Install Node.js LTS:
`fnm {{[i|install]}} --lts`
- List all available Node.js versions and highlight the default one:
`fnm list`
`fnm {{[ls|list]}}`
- Use a specific version of Node.js in the current shell:
@@ -27,4 +30,4 @@ source: https://github.com/tldr-pages/tldr.git
- Uninstall a given Node.js version:
`fnm uninstall {{node_version}}`
`fnm {{[uni|uninstall]}} {{node_version}}`

View File

@@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
`git mktree --missing`
- Read the NUL ([z]ero character) terminated output of the tree object (`ls-tree -z`):
- Read the NUL ([z]ero character) terminated output of the tree object (`git ls-tree -z`):
`git mktree -z`

View File

@@ -10,16 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
- Wait for a deployment to become available:
`kubectl wait --for=condition=available deployment/{{deployment_name}}`
`kubectl wait --for condition=available deployment/{{deployment_name}}`
- Wait for all pods with a certain [l]abel to be ready:
`kubectl wait --for=condition=ready pod {{[-l|--selector]}} {{label_key}}={{label_value}}`
`kubectl wait --for condition=ready pod {{[-l|--selector]}} {{label_key}}={{label_value}}`
- Wait for a pod to be deleted:
`kubectl wait --for=delete pod {{pod_name}}`
`kubectl wait --for delete pod {{pod_name}}`
- Wait for a job to complete, within 120 seconds (if the condition isn't met on time, the exit status will be unsuccessful):
`kubectl wait --for=condition=complete job/{{job_name}} --timeout 120s`
`kubectl wait --for condition=complete job/{{job_name}} --timeout 120s`

View File

@@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git
> Part of the AppArmor suite.
> More information: <https://manned.org/aa-update-browser>.
- List available browser abstraction profiles:
- [l]ist available browser abstraction profiles:
`sudo aa-update-browser -l`
@@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo aa-update-browser -d {{path/to/profile}}`
- Update a profile with specific abstractions:
- [u]pdate a profile with specific abstractions:
`sudo aa-update-browser -u {{abstraction1,abstraction2,...}} {{path/to/profile}}`

View File

@@ -16,6 +16,6 @@ source: https://github.com/tldr-pages/tldr.git
`arithmetic -o {{+|-|x|/}}`
- Specify a range. Addition and multiplication problems would feature numbers between 0 and range, inclusive. Subtraction and division problems would have required result and number to be operated on, between 0 and range:
- Specify a [r]ange. Addition and multiplication problems would feature numbers between 0 and range, inclusive. Subtraction and division problems would have required result and number to be operated on, between 0 and range:
`arithmetic -r {{7}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`chattr -R +i {{path/to/directory}}`
- Mark a directory and its files to be interpreted in a case-insensitive manner:
- Mark a directory and its files to be interpreted in a case-insensitive manner (case-[F]olding):
`chattr +F {{path/to/directory}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# ctop
> Instantly visualize container performance and health with real-time metrics on CPU, memory, and block IO usage.
> More information: <https://github.com/bcicen/ctop>.
> More information: <https://github.com/bcicen/ctop#usage>.
- Show only [a]ctive containers:

View File

@@ -16,11 +16,11 @@ source: https://github.com/tldr-pages/tldr.git
`dnstracer -s {{dns.example.org}} {{www.example.com}}`
- Only query IPv4 servers:
- Only query IPv[4] servers:
`dnstracer -4 {{www.example.com}}`
- Retry each request 5 times on failure:
- [r]etry each request 5 times on failure:
`dnstracer -r {{5}} {{www.example.com}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo e2fsck -c {{/dev/sdXN}}`
- Force checking even if the filesystem seems clean:
- [f]orce checking even if the filesystem seems clean:
`sudo e2fsck -f {{/dev/sdXN}}`

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`e2image -I {{/dev/sdXN}} {{path/to/image_file}}`
- Create a large raw sparse file with metadata at proper offsets:
- Create a large [r]aw sparse file with metadata at proper offsets:
`e2image -r {{/dev/sdXN}} {{path/to/image_file}}`

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`export PATH=$PATH:{{path/to/append}}`
- Display a list of active exported variables in shell command form:
- [p]rint a list of active exported variables in shell command form:
`export -p`

View File

@@ -31,5 +31,5 @@ source: https://github.com/tldr-pages/tldr.git
- View multiple images from the web:
`curl -Osw '%{filename_effective}
`curl {{[-Osw|--remote-name --silent --write-out]}} '%{filename_effective}
' '{{http://www.example.com/[1-10].jpg}}' | imv`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# protontricks
> A simple wrapper that runs Winetricks commands for Proton enabled games.
> More information: <https://github.com/Matoking/protontricks>.
> More information: <https://github.com/Matoking/protontricks#usage>.
- Run the protontricks GUI:
@@ -18,15 +18,15 @@ source: https://github.com/tldr-pages/tldr.git
- Run a command within a game's installation directory:
`protontricks -c {{command}} {{appid}}`
`protontricks {{[-c|--command]}} {{command}} {{appid}}`
- [l]ist all installed games:
- List all installed games:
`protontricks -l`
`protontricks {{[-l|--list]}}`
- [s]earch for a game's App ID by name:
- Search for a game's App ID by name:
`protontricks -s {{game_name}}`
`protontricks {{[-s|--search]}} {{game_name}}`
- Run an executable in the proton environment of a specific game:
@@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help:
`protontricks --help`
`protontricks {{[-h|--help]}}`

View File

@@ -24,6 +24,6 @@ source: https://github.com/tldr-pages/tldr.git
`shutdown -h 13:00`
- Cancel a pending shutdown/reboot operation:
- [c]ancel a pending shutdown/reboot operation:
`shutdown -c`

41
tldr/linux/spa-acp-tool Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# spa-acp-tool
> Debug ALSA card profile probing without running PipeWire.
> More information: <https://docs.pipewire.org/page_man_spa-acp-tool_1.html>.
- List all ALSA objects:
`spa-acp-tool {{[l|list]}}`
- Probe a specific ALSA card by ID:
`spa-acp-tool {{[c|card]}} {{card_id}}`
- List available ALSA profiles for a card:
`spa-acp-tool {{[lpr|list-profiles]}} {{card_id}}`
- Set the active ALSA profile by ID:
`spa-acp-tool {{[spr|set-profile]}} {{profile_id}}`
- List available devices for a card:
`spa-acp-tool {{[ld|list-devices]}} {{card_id}}`
- Get volume from a device:
`spa-acp-tool {{[gv|get-volume]}} {{device_id}}`
- Set volume on a device:
`spa-acp-tool {{[v|set-volume]}} {{device_id}} {{volume_level}}`
- Toggle mute state on a device:
`spa-acp-tool {{[m|toggle-mute]}} {{device_id}}`

13
tldr/linux/spa-inspect Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# spa-inspect
> Display SPA plugin information, list and try to instantiate available factories.
> More information: <https://docs.pipewire.org/page_man_spa-inspect_1.html>.
- Display information about a SPA plugin:
`spa-inspect {{path/to/plugin.so}}`

View File

@@ -0,0 +1,14 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl daemon-reexec
> Reexecute systemd while preserving current unit states.
> See also: `systemctl daemon-reload` for applying changes in unit files.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#daemon-reexec>.
- Reexecute systemd:
`systemctl daemon-reexec`

View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl is-failed
> Check if one or more systemd units have failed.
> See also: `systemctl is-active`, `systemctl status`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#is-failed%20PATTERN%E2%80%A6>.
- Check if there are any failed units:
`systemctl is-failed`
- Check if a unit or multiple units have failed:
`systemctl is-failed {{unit1 unit2 ...}}`
- Suppress output and return only the exit code:
`systemctl is-failed {{unit}} {{[-q|--quiet]}}`
- Check if a user unit has failed:
`systemctl is-failed {{unit}} --user`

View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl list-sockets
> List active socket units currently in memory, ordered by listening address.
> See also: `systemctl list-units`, `systemctl list-unit-files`.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#list-sockets%20PATTERN%E2%80%A6>.
- List active socket units currently in memory:
`systemctl list-sockets`
- List active socket units with their socket types:
`systemctl list-sockets --show-types`
- List all socket units, including inactive and failed ones:
`systemctl list-sockets {{[-a|--all]}}`
- List socket units filtered by state:
`systemctl list-sockets --state {{active|inactive|failed|...}}`
- List socket units matching a name pattern:
`systemctl list-sockets {{pattern1 pattern2 ...}}`

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# tuxi
> Scrape Google search results and SERPs and provide instant and concise answers.
> More information: <https://github.com/Bugswriter/tuxi>.
> More information: <https://github.com/Bugswriter/tuxi#usage>.
- Make a search using Google:

25
tldr/linux/vgcfgrestore Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# vgcfgrestore
> Restore volume group configuration (not user data) from a text back up file produced by `vgcfgbackup`.
> More information: <https://manned.org/vgcfgrestore>.
- Restore VG metadata from last backup.:
`vgcfgrestore {{vg_name}}`
- Restore VG metadata from specified backup-file:
`vgcfgrestore {{[-f|--file]}} {{path/to/file}} {{vg_name}}`
- List all VG metadata backups:
`vgcfgrestore {{[-l|--list]}} {{vg_name}}`
- List one VG metadata backup file:
`vgcfgrestore {{[-l|--list ]}} {{[ -f|--file]}} {{path/to/file}} {{vg_name}}`

30
tldr/mvn-dependency Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# mvn dependency
> Manage and analyze Maven project dependencies.
> Provides goals for viewing, resolving, and copying project dependencies.
> More information: <https://maven.apache.org/plugins/maven-dependency-plugin/usage.html>.
- Display the full dependency tree, including direct and transitive dependencies:
`mvn dependency:tree`
- Analyze the dependencies and highlight unused or undeclared ones:
`mvn dependency:analyze`
- Copy all project dependencies (by default, to `target/dependency/`):
`mvn dependency:copy-dependencies`
- Resolve and download all project dependencies to the local Maven repository:
`mvn dependency:resolve`
- Force Maven to update all dependencies from remote repositories:
`mvn dependency:resolve {{[-U|--update-snapshots]}}`

13
tldr/npm-help Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# npm help
> Display an overview of `npm` syntax, frequently used commands, and a short description of each command.
> More information: <https://docs.npmjs.com/cli/npm-help>.
- Display the documentation for a specific command:
`npm help {{command}}`

29
tldr/opencode Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# opencode
> AI coding agent.
> More information: <https://opencode.ai/docs/cli/>.
- Start the interactive terminal UI:
`opencode`
- List all available models from configured providers:
`opencode models`
- Run opencode in a non-interactive mode by passing a prompt directly:
`opencode run {{message}}`
- Manage AI assistant agents for OpenCode:
`opencode agent {{command}}`
- Create a new agent with custom configuration:
`opencode agent create`

26
tldr/osx/cvfsck Normal file
View File

@@ -0,0 +1,26 @@
---
syntax: markdown
tags: [tldr, osx]
source: https://github.com/tldr-pages/tldr.git
---
# cvfsck
> Check and repair an Xsan file system volume.
> Part of the Xsan file system utilities on macOS.
> More information: <https://www.manpagez.com/man/1/cvfsck/>.
- Check an Xsan volume for metadata corruption (read-only mode):
`sudo cvfsck {{/Volumes/XsanVolume}}`
- Repair a corrupted Xsan volume (make modifications to fix problems):
`sudo cvfsck -w {{/Volumes/XsanVolume}}`
- Log problems to the system log (used mainly during automatic startup checks):
`sudo cvfsck -l {{/Volumes/XsanVolume}}`
- Report free-space fragmentation on an Xsan volume:
`sudo cvfsck -f {{/Volumes/XsanVolume}}`

41
tldr/pecl Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pecl
> Manage PHP extensions from the PHP Extension Community Library.
> More information: <https://manned.org/pecl>.
- Display a list of available commands:
`pecl`
- Install a package:
`pecl install {{package}}`
- List installed packages:
`pecl list`
- Upgrade all packages:
`pecl upgrade`
- Upgrade a specific package:
`pecl upgrade {{package}}`
- Uninstall a specific package:
`pecl uninstall {{package}}`
- Display information about a specific package:
`pecl info {{package}}`
- Update the available package sources:
`pecl update-channels`

42
tldr/pg_basebackup Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pg_basebackup
> Take a base backup of a running PostgreSQL cluster.
> Used for full or incremental backups, point-in-time recovery, or setting up replication standbys.
> More information: <https://www.postgresql.org/docs/current/app-pgbasebackup.html>.
- Take a base backup from a remote PostgreSQL server:
`pg_basebackup {{[-h|--host]}} {{host}} {{[-D|--pgdata]}} {{path/to/backup_dir}}`
- Take a backup with progress shown:
`pg_basebackup {{[-h|--host]}} {{host}} {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-P|--progress]}}`
- Create a compressed backup (`gzip`) in tar format:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-F|--format]}} {{[t|tar]}} {{[-z|--gzip]}}`
- Create an incremental backup using a previous manifest file:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-i|--incremental]}} {{path/to/old_manifest}}`
- Write a recovery configuration for setting up a standby:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-R|--write-recovery-conf]}}`
- Relocate a tablespace during backup:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-T|--tablespace-mapping]}} {{path/to/old_tablespace}}={{path/to/new_tablespace}}`
- Limit transfer rate to reduce server load:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-r|--max-rate]}} {{100M}}`
- Stream WAL logs while taking the backup:
`pg_basebackup {{[-D|--pgdata]}} {{path/to/backup_dir}} {{[-X|--wal-method]}} stream`

33
tldr/pg_verifybackup Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pg_verifybackup
> Verify the integrity of a base backup of a PostgreSQL cluster.
> More information: <https://www.postgresql.org/docs/current/app-pgverifybackup.html>.
- Verify a backup stored in a specific directory:
`pg_verifybackup {{path/to/backup}}`
- Verify a backup showing progress information:
`pg_verifybackup {{[-P|--progress]}} {{path/to/backup}}`
- Verify a backup and exit immediately on first error:
`pg_verifybackup {{[-e|--exit-on-error]}} {{path/to/backup}}`
- Verify a backup ignoring specific files or directories:
`pg_verifybackup {{[-i|--ignore]}} {{path/to/file_or_directory}} {{path/to/backup}}`
- Verify a backup with a manifest file in a different location:
`pg_verifybackup {{[-m|--manifest-path]}} {{path/to/backup_manifest}} {{path/to/backup}}`
- Display help:
`pg_verifybackup {{[-?|--help]}}`

33
tldr/pie Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# pie
> The PHP Installer for Extensions.
> More information: <https://github.com/php/pie/blob/main/docs/usage.md>.
- Install or update an extension:
`pie install {{vendor}}/{{extension}}`
- List installed extensions and their versions:
`pie show`
- Display information about a specific package:
`pie info {{vendor}}/{{extension}}`
- List the configured repositories:
`pie repository:list`
- Add a repository:
`pie repository:add {{type}} {{url}}`
- Remove a repository:
`pie repository:remove {{url}}`

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Print the tldr page for a command from a specific platform:
`tldr {{[-p|--platform]}} {{android|common|freebsd|linux|osx|netbsd|openbsd|sunos|windows}} {{command}}`
`tldr {{[-p|--platform]}} {{android|cisco-ios|common|dos|freebsd|linux|netbsd|openbsd|osx|sunos|windows}} {{command}}`
- Update the local cache of tldr pages:

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`findstr /s "{{string1 string2 ...}}" *`
- Find strings using a case-insensitive search:
- Find strings using a case-[i]nsensitive search:
`findstr /i "{{string1 string2 ...}}" *`
@@ -32,10 +32,10 @@ source: https://github.com/tldr-pages/tldr.git
`findstr /c:"{{string1 string2 ...}}" *.txt`
- Display the line number before each matching line:
- Display the line [n]umber before each matching line:
`findstr /n "{{string1 string2 ...}}" *`
- Display only the filenames that contain a match:
- Display only the filenames that contain a [m]atch:
`findstr /m "{{string1 string2 ...}}" *`