From b18a76189684316085ecb361921122bb844bcd4d Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Thu, 16 Oct 2025 00:19:59 +0000 Subject: [PATCH] Update cheatsheets --- tldr/android/am | 2 +- tldr/atuin | 6 ++--- tldr/dnsx | 2 +- tldr/dos/cd | 2 +- tldr/dos/chdir | 12 +++++++++ tldr/fnm | 13 +++++---- tldr/git-mktree | 2 +- tldr/kubectl-wait | 8 +++--- tldr/linux/aa-update-browser | 4 +-- tldr/linux/arithmetic | 2 +- tldr/linux/chattr | 2 +- tldr/linux/ctop | 2 +- tldr/linux/dnstracer | 4 +-- tldr/linux/e2fsck | 2 +- tldr/linux/e2image | 2 +- tldr/linux/export | 2 +- tldr/linux/imv | 2 +- tldr/linux/protontricks | 14 +++++----- tldr/linux/shutdown | 2 +- tldr/linux/spa-acp-tool | 41 +++++++++++++++++++++++++++++ tldr/linux/spa-inspect | 13 +++++++++ tldr/linux/systemctl-daemon-reexec | 14 ++++++++++ tldr/linux/systemctl-is-failed | 26 ++++++++++++++++++ tldr/linux/systemctl-list-sockets | 30 +++++++++++++++++++++ tldr/linux/tuxi | 2 +- tldr/linux/vgcfgrestore | 25 ++++++++++++++++++ tldr/mvn-dependency | 30 +++++++++++++++++++++ tldr/npm-help | 13 +++++++++ tldr/opencode | 29 +++++++++++++++++++++ tldr/osx/cvfsck | 26 ++++++++++++++++++ tldr/pecl | 41 +++++++++++++++++++++++++++++ tldr/pg_basebackup | 42 ++++++++++++++++++++++++++++++ tldr/pg_verifybackup | 33 +++++++++++++++++++++++ tldr/pie | 33 +++++++++++++++++++++++ tldr/tldr | 2 +- tldr/windows/findstr | 6 ++--- 36 files changed, 451 insertions(+), 40 deletions(-) create mode 100644 tldr/dos/chdir create mode 100644 tldr/linux/spa-acp-tool create mode 100644 tldr/linux/spa-inspect create mode 100644 tldr/linux/systemctl-daemon-reexec create mode 100644 tldr/linux/systemctl-is-failed create mode 100644 tldr/linux/systemctl-list-sockets create mode 100644 tldr/linux/vgcfgrestore create mode 100644 tldr/mvn-dependency create mode 100644 tldr/npm-help create mode 100644 tldr/opencode create mode 100644 tldr/osx/cvfsck create mode 100644 tldr/pecl create mode 100644 tldr/pg_basebackup create mode 100644 tldr/pg_verifybackup create mode 100644 tldr/pie diff --git a/tldr/android/am b/tldr/android/am index 5f036d57..df389f7d 100644 --- a/tldr/android/am +++ b/tldr/android/am @@ -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}}` diff --git a/tldr/atuin b/tldr/atuin index cdc05259..99786e38 100644 --- a/tldr/atuin +++ b/tldr/atuin @@ -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: diff --git a/tldr/dnsx b/tldr/dnsx index 04d7af6e..ede2a055 100644 --- a/tldr/dnsx +++ b/tldr/dnsx @@ -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: . +> More information: . - Query the A record of a (sub)domain and show [re]sponse received: diff --git a/tldr/dos/cd b/tldr/dos/cd index ac0493a8..80241501 100644 --- a/tldr/dos/cd +++ b/tldr/dos/cd @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # CD > Change the current working directory. -> More information: . +> More information: . - Go to the specified directory: diff --git a/tldr/dos/chdir b/tldr/dos/chdir new file mode 100644 index 00000000..6226c86d --- /dev/null +++ b/tldr/dos/chdir @@ -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` diff --git a/tldr/fnm b/tldr/fnm index 8d94e73c..15802312 100644 --- a/tldr/fnm +++ b/tldr/fnm @@ -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: . +> More information: . - 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}}` diff --git a/tldr/git-mktree b/tldr/git-mktree index dc86fad4..6e0a4c18 100644 --- a/tldr/git-mktree +++ b/tldr/git-mktree @@ -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` diff --git a/tldr/kubectl-wait b/tldr/kubectl-wait index cb4260f4..8bd0cb71 100644 --- a/tldr/kubectl-wait +++ b/tldr/kubectl-wait @@ -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` diff --git a/tldr/linux/aa-update-browser b/tldr/linux/aa-update-browser index 6a83e03c..1311f8f4 100644 --- a/tldr/linux/aa-update-browser +++ b/tldr/linux/aa-update-browser @@ -9,7 +9,7 @@ source: https://github.com/tldr-pages/tldr.git > Part of the AppArmor suite. > More information: . -- 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}}` diff --git a/tldr/linux/arithmetic b/tldr/linux/arithmetic index 5a0b9a28..acce482f 100644 --- a/tldr/linux/arithmetic +++ b/tldr/linux/arithmetic @@ -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}}` diff --git a/tldr/linux/chattr b/tldr/linux/chattr index e95e22e6..cc3a08df 100644 --- a/tldr/linux/chattr +++ b/tldr/linux/chattr @@ -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}}` diff --git a/tldr/linux/ctop b/tldr/linux/ctop index d79fd9f1..e3d3c0ab 100644 --- a/tldr/linux/ctop +++ b/tldr/linux/ctop @@ -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: . +> More information: . - Show only [a]ctive containers: diff --git a/tldr/linux/dnstracer b/tldr/linux/dnstracer index f350fe46..d5b283e6 100644 --- a/tldr/linux/dnstracer +++ b/tldr/linux/dnstracer @@ -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}}` diff --git a/tldr/linux/e2fsck b/tldr/linux/e2fsck index a758f374..8c09ad53 100644 --- a/tldr/linux/e2fsck +++ b/tldr/linux/e2fsck @@ -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}}` diff --git a/tldr/linux/e2image b/tldr/linux/e2image index c667dbe1..10358017 100644 --- a/tldr/linux/e2image +++ b/tldr/linux/e2image @@ -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}}` diff --git a/tldr/linux/export b/tldr/linux/export index f8bd5ae6..3d4b6cc9 100644 --- a/tldr/linux/export +++ b/tldr/linux/export @@ -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` diff --git a/tldr/linux/imv b/tldr/linux/imv index d846b5da..b9ef7721 100644 --- a/tldr/linux/imv +++ b/tldr/linux/imv @@ -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` diff --git a/tldr/linux/protontricks b/tldr/linux/protontricks index d7010179..6378e38e 100644 --- a/tldr/linux/protontricks +++ b/tldr/linux/protontricks @@ -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: . +> More information: . - 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]}}` diff --git a/tldr/linux/shutdown b/tldr/linux/shutdown index 1588c60c..b81e3ef3 100644 --- a/tldr/linux/shutdown +++ b/tldr/linux/shutdown @@ -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` diff --git a/tldr/linux/spa-acp-tool b/tldr/linux/spa-acp-tool new file mode 100644 index 00000000..193e9cbf --- /dev/null +++ b/tldr/linux/spa-acp-tool @@ -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: . + +- 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}}` diff --git a/tldr/linux/spa-inspect b/tldr/linux/spa-inspect new file mode 100644 index 00000000..83c2cb9b --- /dev/null +++ b/tldr/linux/spa-inspect @@ -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: . + +- Display information about a SPA plugin: + +`spa-inspect {{path/to/plugin.so}}` diff --git a/tldr/linux/systemctl-daemon-reexec b/tldr/linux/systemctl-daemon-reexec new file mode 100644 index 00000000..753ba3ce --- /dev/null +++ b/tldr/linux/systemctl-daemon-reexec @@ -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: . + +- Reexecute systemd: + +`systemctl daemon-reexec` diff --git a/tldr/linux/systemctl-is-failed b/tldr/linux/systemctl-is-failed new file mode 100644 index 00000000..8dfe0822 --- /dev/null +++ b/tldr/linux/systemctl-is-failed @@ -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: . + +- 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` diff --git a/tldr/linux/systemctl-list-sockets b/tldr/linux/systemctl-list-sockets new file mode 100644 index 00000000..29ed22f9 --- /dev/null +++ b/tldr/linux/systemctl-list-sockets @@ -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: . + +- 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 ...}}` diff --git a/tldr/linux/tuxi b/tldr/linux/tuxi index 8fefd705..4043abef 100644 --- a/tldr/linux/tuxi +++ b/tldr/linux/tuxi @@ -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: . +> More information: . - Make a search using Google: diff --git a/tldr/linux/vgcfgrestore b/tldr/linux/vgcfgrestore new file mode 100644 index 00000000..f398c4ae --- /dev/null +++ b/tldr/linux/vgcfgrestore @@ -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: . + +- 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}}` diff --git a/tldr/mvn-dependency b/tldr/mvn-dependency new file mode 100644 index 00000000..a44b6232 --- /dev/null +++ b/tldr/mvn-dependency @@ -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: . + +- 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]}}` diff --git a/tldr/npm-help b/tldr/npm-help new file mode 100644 index 00000000..4ae5e860 --- /dev/null +++ b/tldr/npm-help @@ -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: . + +- Display the documentation for a specific command: + +`npm help {{command}}` diff --git a/tldr/opencode b/tldr/opencode new file mode 100644 index 00000000..4415c8c8 --- /dev/null +++ b/tldr/opencode @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# opencode + +> AI coding agent. +> More information: . + +- 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` diff --git a/tldr/osx/cvfsck b/tldr/osx/cvfsck new file mode 100644 index 00000000..73c8b37b --- /dev/null +++ b/tldr/osx/cvfsck @@ -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: . + +- 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}}` diff --git a/tldr/pecl b/tldr/pecl new file mode 100644 index 00000000..e911e6ce --- /dev/null +++ b/tldr/pecl @@ -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: . + +- 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` diff --git a/tldr/pg_basebackup b/tldr/pg_basebackup new file mode 100644 index 00000000..a7ffc6ff --- /dev/null +++ b/tldr/pg_basebackup @@ -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: . + +- 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` diff --git a/tldr/pg_verifybackup b/tldr/pg_verifybackup new file mode 100644 index 00000000..80083474 --- /dev/null +++ b/tldr/pg_verifybackup @@ -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: . + +- 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]}}` diff --git a/tldr/pie b/tldr/pie new file mode 100644 index 00000000..d0e2cd9c --- /dev/null +++ b/tldr/pie @@ -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: . + +- 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}}` diff --git a/tldr/tldr b/tldr/tldr index 59d15fb9..6e1e26d4 100644 --- a/tldr/tldr +++ b/tldr/tldr @@ -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: diff --git a/tldr/windows/findstr b/tldr/windows/findstr index 23debef2..6472f7a7 100644 --- a/tldr/windows/findstr +++ b/tldr/windows/findstr @@ -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 ...}}" *`