From d5421f7c012a9d1b054b7ca49e232ea15e5f01aa Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Wed, 15 Oct 2025 00:19:37 +0000 Subject: [PATCH] Update cheatsheets --- tldr/coproc | 4 ++-- tldr/cpio | 2 +- tldr/cupstestppd | 2 +- tldr/dnsx | 2 +- tldr/docker-build | 2 +- tldr/docker-load | 2 +- tldr/esbuild | 2 +- tldr/etcdctl | 2 +- tldr/fabric | 2 +- tldr/fclones | 4 ++-- tldr/fx | 33 +++++++++++++++++++++++++++++++ tldr/gau | 2 +- tldr/gh-secret | 2 +- tldr/gh-secret-set | 2 +- tldr/git-check-ignore | 2 +- tldr/git-mktree | 2 +- tldr/git-stripspace | 2 +- tldr/grep | 2 +- tldr/linux/eog | 33 +++++++++++++++++++++++++++++++ tldr/linux/lvrename | 21 ++++++++++++++++++++ tldr/linux/pacfile | 4 ++-- tldr/linux/pacini | 6 +++--- tldr/linux/systemctl-help | 29 +++++++++++++++++++++++++++ tldr/linux/systemctl-kill | 25 ++++++++++++++++++++++++ tldr/linux/wg | 2 +- tldr/mariadb | 2 +- tldr/mosquitto_pub | 2 +- tldr/openssl-s_client | 4 ++-- tldr/perl | 17 +++++++--------- tldr/pg_checksums | 33 +++++++++++++++++++++++++++++++ tldr/pg_config | 37 +++++++++++++++++++++++++++++++++++ tldr/pg_createsubscriber | 29 +++++++++++++++++++++++++++ tldr/pg_upgrade | 33 +++++++++++++++++++++++++++++++ tldr/read | 2 +- tldr/talosctl | 34 ++++++++++++++++++++++++++++++++ tldr/vet | 29 +++++++++++++++++++++++++++ tldr/windows/curl | 2 +- tldr/windows/powercfg | 41 +++++++++++++++++++++++++++++++++++++++ tldr/windows/wget | 2 +- tldr/zapier-history | 21 ++++++++++++++++++++ tldr/zapier-login | 21 ++++++++++++++++++++ tldr/zipnote | 2 +- 42 files changed, 459 insertions(+), 43 deletions(-) create mode 100644 tldr/fx create mode 100644 tldr/linux/eog create mode 100644 tldr/linux/lvrename create mode 100644 tldr/linux/systemctl-help create mode 100644 tldr/linux/systemctl-kill create mode 100644 tldr/pg_checksums create mode 100644 tldr/pg_config create mode 100644 tldr/pg_createsubscriber create mode 100644 tldr/pg_upgrade create mode 100644 tldr/talosctl create mode 100644 tldr/vet create mode 100644 tldr/windows/powercfg create mode 100644 tldr/zapier-history create mode 100644 tldr/zapier-login diff --git a/tldr/coproc b/tldr/coproc index cad2698b..6d128964 100644 --- a/tldr/coproc +++ b/tldr/coproc @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Read from a specific coprocess `stdout`: -`read {{variable}} <&"${{{name[0]}}}"` +`read <&"${{{name[0]}}}" {{variable}}` - Create a coprocess which repeatedly reads `stdin` and runs some commands on the input: @@ -34,4 +34,4 @@ source: https://github.com/tldr-pages/tldr.git - Create and use a coprocess running `bc`: -`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"` +`coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read <&"${BC[0]}" output; echo "$output"` diff --git a/tldr/cpio b/tldr/cpio index bf1e47a8..73813821 100644 --- a/tldr/cpio +++ b/tldr/cpio @@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git - Pick all files from an archive (copy-[i]n), generating directories where needed, in verbose mode: -`cpio {{[-idv|--extract --make-directories --verbose]}} < {{archive.cpio}}` +`cpio < {{archive.cpio}} {{[-idv|--extract --make-directories --verbose]}}` diff --git a/tldr/cupstestppd b/tldr/cupstestppd index ae3ffaef..16f39491 100644 --- a/tldr/cupstestppd +++ b/tldr/cupstestppd @@ -17,7 +17,7 @@ source: https://github.com/tldr-pages/tldr.git - Get the PPD file from `stdin`, showing detailed conformance testing results: -`cupstestppd -v - < {{path/to/file.ppd}}` +`cupstestppd < {{path/to/file.ppd}} -v -` - Test all PPD files under the current directory, printing the names of each file that does not conform: diff --git a/tldr/dnsx b/tldr/dnsx index 4cf8d1d0..04d7af6e 100644 --- a/tldr/dnsx +++ b/tldr/dnsx @@ -16,7 +16,7 @@ source: https://github.com/tldr-pages/tldr.git - Query all the DNS records (A, AAAA, CNAME, NS, TXT, SRV, PTR, MX, SOA, AXFR, CAA): -`dnsx -recon {{[-re|-resp]}} <<< {{example.com}}` +`dnsx <<< {{example.com}} -recon {{[-re|-resp]}}` - Query a specific type of DNS record: diff --git a/tldr/docker-build b/tldr/docker-build index 7260b5a9..a43df785 100644 --- a/tldr/docker-build +++ b/tldr/docker-build @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Build a Docker image with no build context: -`docker build {{[-t|--tag]}} {{name:tag}} - < {{Dockerfile}}` +`docker < {{Dockerfile}} build {{[-t|--tag]}} {{name:tag}} -` - Do not use the cache when building the image: diff --git a/tldr/docker-load b/tldr/docker-load index 6862553b..da3f5d5c 100644 --- a/tldr/docker-load +++ b/tldr/docker-load @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Load a Docker image from `stdin`: -`docker load < {{path/to/image_file.tar}}` +`docker < {{path/to/image_file.tar}} load` - Load a Docker image from a specific file: diff --git a/tldr/esbuild b/tldr/esbuild index 38e58400..fbb2d795 100644 --- a/tldr/esbuild +++ b/tldr/esbuild @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Bundle a JSX application from `stdin`: -`esbuild --bundle --outfile={{path/to/out.js}} < {{path/to/file.jsx}}` +`esbuild < {{path/to/file.jsx}} --bundle --outfile={{path/to/out.js}}` - Bundle and minify a JSX application with source maps in `production` mode: diff --git a/tldr/etcdctl b/tldr/etcdctl index 8c2e35a4..2ae476e8 100644 --- a/tldr/etcdctl +++ b/tldr/etcdctl @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Store a key-value pair, reading the value from a file: -`etcdctl put {{my/file}} < {{path/to/file.txt}}` +`etcdctl < {{path/to/file.txt}} put {{my/file}}` - Save a snapshot of the etcd keystore: diff --git a/tldr/fabric b/tldr/fabric index c8f6f27b..bc01a1e2 100644 --- a/tldr/fabric +++ b/tldr/fabric @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Run a pattern with input from a file: -`fabric {{[-p|--pattern]}} {{pattern_name}} < {{path/to/input_file}}` +`fabric < {{path/to/input_file}} {{[-p|--pattern]}} {{pattern_name}}` - Run a pattern on a YouTube video URL: diff --git a/tldr/fclones b/tldr/fclones index ee25b9e5..55138da6 100644 --- a/tldr/fclones +++ b/tldr/fclones @@ -22,11 +22,11 @@ source: https://github.com/tldr-pages/tldr.git - Move the duplicate files in a TXT file to a different directory: -`fclones move {{path/to/target_directory}} < {{path/to/file.txt}}` +`fclones < {{path/to/file.txt}} move {{path/to/target_directory}}` - Perform a dry run for soft links in a TXT file without actually linking: -`fclones link --soft < {{path/to/file.txt}} --dry-run 2 > /dev/null` +`fclones < {{path/to/file.txt}} link --soft --dry-run 2 > /dev/null` - Delete the newest duplicates from the current directory without storing them in a file: diff --git a/tldr/fx b/tldr/fx new file mode 100644 index 00000000..875114db --- /dev/null +++ b/tldr/fx @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# fx + +> View and process JSON. +> More information: . + +- View a JSON file interactively: + +`fx {{path/to/file.json}}` + +- Pretty-print and colorize JSON from `stdin`: + +`cat {{path/to/file.json}} | fx` + +- Open JSON data from a URL: + +`curl {{url}} | fx` + +- Filter JSON using JavaScript-like expressions: + +`fx {{path/to/file.json}} {{.name}}` + +- Parse a TOML input file into JSON: + +`fx --toml {{path/to/file.toml}}` + +- Parse a YAML input file into JSON: + +`fx --yaml {{path/to/file.yaml}}` diff --git a/tldr/gau b/tldr/gau index 0634acf5..5032deed 100644 --- a/tldr/gau +++ b/tldr/gau @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Fetch all URLs of several domains from an input file, running multiple threads: -`gau --threads {{4}} < {{path/to/domains.txt}}` +`gau < {{path/to/domains.txt}} --threads {{4}}` - Write [o]utput results to a file: diff --git a/tldr/gh-secret b/tldr/gh-secret index c4b3c59d..9512aa30 100644 --- a/tldr/gh-secret +++ b/tldr/gh-secret @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Set a secret from a file for the current repository: -`gh secret set {{name}} < {{path/to/file}}` +`gh < {{path/to/file}} secret set {{name}}` - Set an organization secret for specific repositories: diff --git a/tldr/gh-secret-set b/tldr/gh-secret-set index 265c211c..dd990ade 100644 --- a/tldr/gh-secret-set +++ b/tldr/gh-secret-set @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Set a secret from a file for the current repository: -`gh secret set {{name}} < {{path/to/file}}` +`gh < {{path/to/file}} secret set {{name}}` - Set a secret for a specific repository: diff --git a/tldr/git-check-ignore b/tldr/git-check-ignore index 4c24f3b6..a9de951d 100644 --- a/tldr/git-check-ignore +++ b/tldr/git-check-ignore @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Use pathnames, one per line, from `stdin`: -`git check-ignore --stdin < {{path/to/file_list}}` +`git < {{path/to/file_list}} check-ignore --stdin` - Do not check the index (used to debug why paths were tracked and not ignored): diff --git a/tldr/git-mktree b/tldr/git-mktree index 13d3483d..dc86fad4 100644 --- a/tldr/git-mktree +++ b/tldr/git-mktree @@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git - Sort and build a tree from `stdin` (non-recursive `git ls-tree` output format is required): -`git mktree < {{path/to/tree.txt}}` +`git < {{path/to/tree.txt}} mktree` diff --git a/tldr/git-stripspace b/tldr/git-stripspace index c33a5429..3ef025f5 100644 --- a/tldr/git-stripspace +++ b/tldr/git-stripspace @@ -18,4 +18,4 @@ source: https://github.com/tldr-pages/tldr.git - Convert all lines in a file into Git comments: -`git stripspace {{[-c|--comment-lines]}} < {{path/to/file}}` +`git < {{path/to/file}} stripspace {{[-c|--comment-lines]}}` diff --git a/tldr/grep b/tldr/grep index 0ec1b7cc..22759dc8 100644 --- a/tldr/grep +++ b/tldr/grep @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Search for a pattern within a file: -`grep "{{search_pattern}}" {{path/to/file}}` +`grep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}` - Search for an exact string (disables `regex`es): diff --git a/tldr/linux/eog b/tldr/linux/eog new file mode 100644 index 00000000..7d97fd8b --- /dev/null +++ b/tldr/linux/eog @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# eog + +> View and manage images. +> More information: . + +- Open an image file: + +`eog {{path/to/image.png}}` + +- Open multiple images: + +`eog {{image1.jpg image2.png ...}}` + +- Open images in fullscreen mode: + +`eog --fullscreen {{path/to/image.jpg}}` + +- Start a slideshow: + +`eog --slide-show {{path/to/directory}}` + +- Open a single image without image collection: + +`eog --single-window {{path/to/image.jpg}}` + +- Open an image in a new window instance: + +`eog --new-instance {{path/to/image.jpg}}` diff --git a/tldr/linux/lvrename b/tldr/linux/lvrename new file mode 100644 index 00000000..874c565f --- /dev/null +++ b/tldr/linux/lvrename @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# lvrename + +> Rename a logical volume. +> More information: . + +- Rename an LV using full paths: + +`sudo lvrename {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}` + +- Rename an LV using the volume group and names: + +`sudo lvrename {{vg_name}} {{old_lv}} {{new_lv}}` + +- Answer "yes" to any prompts: + +`sudo lvrename {{[-y|--yes]}} {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}` diff --git a/tldr/linux/pacfile b/tldr/linux/pacfile index ab7d798d..1d0ab71b 100644 --- a/tldr/linux/pacfile +++ b/tldr/linux/pacfile @@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git - List all available packages: -`pacfile` +`pacfile {{path/to/file_or_directory}}` - Compare database values to the file system: -`pacfile --check` +`pacfile {{path/to/file_or_directory}} --check` - Display help: diff --git a/tldr/linux/pacini b/tldr/linux/pacini index 508be418..51773ec9 100644 --- a/tldr/linux/pacini +++ b/tldr/linux/pacini @@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git - List configured sections: -`pacini --section-list` +`pacini {{path/to/file}} --section-list` - Always show directive names even if only one directive is provided: -`pacini --verbose {{directive}}` +`pacini {{path/to/file}} --verbose` - Display directives listed in a specific section: -`pacini --section {{section_name}}` +`pacini {{path/to/file}} --section {{section_name}}` - Display help: diff --git a/tldr/linux/systemctl-help b/tldr/linux/systemctl-help new file mode 100644 index 00000000..c8e45fd5 --- /dev/null +++ b/tldr/linux/systemctl-help @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl help + +> Show the manual pages for one or more units, or for the unit a process belongs to (by PID). +> More information: . + +- Show the manual page for a specific unit: + +`systemctl help {{unit}}` + +- Show the manual pages for multiple units: + +`systemctl help {{unit1 unit2 ...}}` + +- Show the manual page for a user unit: + +`systemctl help {{unit}} --user` + +- Show the manual page without a pager (all at once): + +`systemctl help {{unit}} --no-pager` + +- Show the manual page for the unit of a process by PID: + +`systemctl help {{pid}}` diff --git a/tldr/linux/systemctl-kill b/tldr/linux/systemctl-kill new file mode 100644 index 00000000..559de2f6 --- /dev/null +++ b/tldr/linux/systemctl-kill @@ -0,0 +1,25 @@ +--- +syntax: markdown +tags: [tldr, linux] +source: https://github.com/tldr-pages/tldr.git +--- +# systemctl kill + +> Send a signal to one or more processes of a unit. +> More information: . + +- Send the `SIGTERM` signal to a unit to terminate it: + +`systemctl kill {{unit}}` + +- Send a specific signal to a unit: + +`systemctl kill {{[-s|--signal]}} {{signal_number|signal_name}} {{unit}}` + +- Send a `SIGHUP` signal to only the main process of a unit: + +`systemctl kill {{[-s|--signal]}} SIGHUP --kill-whom main {{unit}}` + +- List all available signals: + +`systemctl kill {{[-s|--signal]}} help` diff --git a/tldr/linux/wg b/tldr/linux/wg index bae34fb0..e4ab7d9b 100644 --- a/tldr/linux/wg +++ b/tldr/linux/wg @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Generate a public key from a private key: -`wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}` +`wg < {{path/to/private_key}} pubkey > {{path/to/public_key}}` - Generate a public and private key: diff --git a/tldr/mariadb b/tldr/mariadb index 7e203789..fbc524ec 100644 --- a/tldr/mariadb +++ b/tldr/mariadb @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Execute SQL statements from a script file: -`mariadb {{db_name}} < {{path/to/script.sql}} > {{path/to/output.tab}}` +`mariadb < {{path/to/script.sql}} {{db_name}} > {{path/to/output.tab}}` - Check memory and open file usage at exit: diff --git a/tldr/mosquitto_pub b/tldr/mosquitto_pub index 74e6dfe1..fff40c24 100644 --- a/tldr/mosquitto_pub +++ b/tldr/mosquitto_pub @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic: -`mosquitto_pub {{[-t|--topic]}} {{sensors/temperature}} {{[-s|--stdin-file]}} < {{data.txt}}` +`mosquitto_pub < {{data.txt}} {{[-t|--topic]}} {{sensors/temperature}} {{[-s|--stdin-file]}}` - Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic: diff --git a/tldr/openssl-s_client b/tldr/openssl-s_client index e20fe54d..6326bbd0 100644 --- a/tldr/openssl-s_client +++ b/tldr/openssl-s_client @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Display the certificate presented by an SSL/TLS server: -`openssl s_client -connect {{host}}:{{port}} The Perl 5 language interpreter. -> More information: . +> See also: `perldoc`. +> More information: . -- Print lines from `stdin` [m/] matching `regex1` and case insensitive [/i] `regex2`: +- Print lines from `stdin` [m]atching `regex1` and case [i]nsensitive `regex2`: -`perl -n -e 'print if m/{{regex1}}/ and m/{{regex2}}/i'` +`perl -n -e 'print if m/regex1/ and m/regex2/i'` -- Say [-E] first match group, using a `regex`, ignoring space in `regex` [/x]: +- Say ([-E]) first match group, using a `regex`, ignoring space ([x]) in `regex`: `perl -n -E 'say $1 if m/{{before}} ( {{group_regex}} ) {{after}}/x'` -- [-i]n-place, with backup, [s/] substitute all occurrence [/g] of `regex` with replacement: +- [i]n-place, with backup, [s]ubstitute all occurrence ([g]) of `regex` with a replacement: -`perl -i'.bak' -p -e 's/{{regex}}/{{replacement}}/g' {{path/to/files}}` - -- Use perl's inline documentation, some pages also available via manual pages on Linux: - -`perldoc perlrun ; perldoc module ; perldoc -f splice; perldoc -q perlfaq1` +`perl -i'.bak' -p -e 's/regex/{{replacement}}/g' {{path/to/files}}` diff --git a/tldr/pg_checksums b/tldr/pg_checksums new file mode 100644 index 00000000..97a31fe4 --- /dev/null +++ b/tldr/pg_checksums @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_checksums + +> Enable, disable, or check data checksums in a PostgreSQL database cluster. +> More information: . + +- Check data checksums in a database cluster: + +`pg_checksums {{[-D|--pgdata]}} {{path/to/data}}` + +- Enable data checksums in a database cluster: + +`pg_checksums {{[-e|--enable]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Disable data checksums in a database cluster: + +`pg_checksums {{[-d|--disable]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Check data checksums with verbose output: + +`pg_checksums {{[-v|--verbose]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Check data checksums showing progress: + +`pg_checksums {{[-P|--progress]}} {{[-D|--pgdata]}} {{path/to/data}}` + +- Display help: + +`pg_checksums {{[-?|--help]}}` diff --git a/tldr/pg_config b/tldr/pg_config new file mode 100644 index 00000000..cdf85565 --- /dev/null +++ b/tldr/pg_config @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_config + +> Display information about the installed PostgreSQL version. +> More information: . + +- Show the directory where PostgreSQL binaries are installed: + +`pg_config --bindir` + +- Show the directory for library files: + +`pg_config --libdir` + +- Show the directory for include files (C headers): + +`pg_config --includedir` + +- Show the directory for shared data files: + +`pg_config --sharedir` + +- Show the directory for locale data: + +`pg_config --localedir` + +- Display help: + +`pg_config {{[-?|--help]}}` + +- Display version: + +`pg_config --version` diff --git a/tldr/pg_createsubscriber b/tldr/pg_createsubscriber new file mode 100644 index 00000000..e298ab8c --- /dev/null +++ b/tldr/pg_createsubscriber @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_createsubscriber + +> Convert a physical replica into a new logical replica. +> More information: . + +- Convert a physical replica to a logical replica for a specific database: + +`pg_createsubscriber {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}` + +- Perform a dry run without modifying the target directory: + +`pg_createsubscriber {{[-n|--dry-run]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}` + +- Enable two-phase commit for the subscription: + +`pg_createsubscriber {{[-T|--enable-two-phase]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}` + +- Convert with verbose output: + +`pg_createsubscriber {{[-v|--verbose]}} {{[-d|--database]}} {{dbname}} {{[-D|--pgdata]}} {{path/to/data}} {{[-P|--publisher-server]}} {{connstr}}` + +- Display help: + +`pg_createsubscriber {{[-?|--help]}}` diff --git a/tldr/pg_upgrade b/tldr/pg_upgrade new file mode 100644 index 00000000..6b70091e --- /dev/null +++ b/tldr/pg_upgrade @@ -0,0 +1,33 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# pg_upgrade + +> Upgrade a PostgreSQL database cluster to a new major version. +> More information: . + +- Check clusters before upgrading: + +`pg_upgrade {{[-c|--check]}} {{[-b|--old-bindir]}} {{path/to/old_bin}} {{[-B|--new-bindir]}} {{path/to/new_bin}} {{[-d|--old-datadir]}} {{path/to/old_data}} {{[-D|--new-datadir]}} {{path/to/new_data}}` + +- Perform the actual upgrade: + +`pg_upgrade {{[-b|--old-bindir]}} {{path/to/old_bin}} {{[-B|--new-bindir]}} {{path/to/new_bin}} {{[-d|--old-datadir]}} {{path/to/old_data}} {{[-D|--new-datadir]}} {{path/to/new_data}}` + +- Use multiple parallel jobs during the upgrade: + +`pg_upgrade {{[-j|--jobs]}} {{njobs}} {{[-b|--old-bindir]}} {{path/to/old_bin}} {{[-B|--new-bindir]}} {{path/to/new_bin}} {{[-d|--old-datadir]}} {{path/to/old_data}} {{[-D|--new-datadir]}} {{path/to/new_data}}` + +- Specify the old and new PostgreSQL ports: + +`pg_upgrade {{[-p|--old-port]}} {{port}} {{[-P|--new-port]}} {{port}} {{[-b|--old-bindir]}} {{path/to/old_bin}} {{[-B|--new-bindir]}} {{path/to/new_bin}} {{[-d|--old-datadir]}} {{path/to/old_data}} {{[-D|--new-datadir]}} {{path/to/new_data}}` + +- Use hard links instead of copying files to the new cluster: + +`pg_upgrade {{[-k|--link]}} {{[-b|--old-bindir]}} {{path/to/old_bin}} {{[-B|--new-bindir]}} {{path/to/new_bin}} {{[-d|--old-datadir]}} {{path/to/old_data}} {{[-D|--new-datadir]}} {{path/to/new_data}}` + +- Display help: + +`pg_upgrade {{[-?|--help]}}` diff --git a/tldr/read b/tldr/read index f126e746..ed704359 100644 --- a/tldr/read +++ b/tldr/read @@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git - Assign multiple values to multiple variables: -`read {{_ variable1 _ variable2}} <<< "{{The surname is Bond}}"` +`read <<< "{{The surname is Bond}}" {{_ variable1 _ variable2}}` - Do not let backslash (\) act as an escape character: diff --git a/tldr/talosctl b/tldr/talosctl new file mode 100644 index 00000000..410f7f89 --- /dev/null +++ b/tldr/talosctl @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# talosctl + +> Interact with Talos Linux, a minimal and immutable Kubernetes distribution. +> See also: `kubectl`. +> More information: . + +- Apply a config to a fresh node: + +`talosctl apply-config {{[-i|--insecture]}} {{[-n|--nodes]}} {{control_plane_ip}} {{[-f|--file]}} {{path/to/control_plane.yaml}}` + +- Bootstrap the `etcd` cluster on a node: + +`talosctl bootstrap {{[-n|--nodes]}} {{node_ip}}` + +- Edit an API resource: + +`talosctl edit {{resource_to_edit}} {{[-n|--nodes]}} {{node_ip}}` + +- Get resources: + +`talosctl get {{resource_to_get}} {{[-n|--nodes]}} {{node_ip}}` + +- Download the admin kube configuration from a node: + +`talosctl kubeconfig {{[-n|--nodes]}} {{node_ip}}` + +- Reset a node: + +`talosctl reset {{[-n|--nodes]}} {{node_ip}}` diff --git a/tldr/vet b/tldr/vet new file mode 100644 index 00000000..c037e65a --- /dev/null +++ b/tldr/vet @@ -0,0 +1,29 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# vet + +> Scan package manifests, directories, container images, or GitHub repositories to identify vulnerabilities, malicious packages, and enforce security policies using CEL expressions. +> More information: . + +- Scan the current directory: + +`vet scan {{[-D|--directory]}} .` + +- Scan the `package-lock.json` manifest file: + +`vet scan {{[-M|--manifests]}} {{path/to/manifest_file}}` + +- Scan with filter to fail on any critical vulnerability found in the codebase: + +`vet scan {{[-D|--directory]}} {{path/to/directory}} --filter 'vulns.critical.exists(p, true)' --filter-fail` + +- Scan any OSS package for malware: + +`vet inspect malware --purl {{package_url}}` + +- Start the MCP server for AI enabled security in code editors like Cursor: + +`vet server mcp` diff --git a/tldr/windows/curl b/tldr/windows/curl index a37b785e..bcef9b47 100644 --- a/tldr/windows/curl +++ b/tldr/windows/curl @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original `curl` command: -`tldr curl -p common` +`tldr curl {{[-p|--platform]}} common` - View documentation for PowerShell's `Invoke-WebRequest` command: diff --git a/tldr/windows/powercfg b/tldr/windows/powercfg new file mode 100644 index 00000000..f2f2f452 --- /dev/null +++ b/tldr/windows/powercfg @@ -0,0 +1,41 @@ +--- +syntax: markdown +tags: [tldr, windows] +source: https://github.com/tldr-pages/tldr.git +--- +# powercfg + +> Configure power settings and manage power schemes. +> More information: . + +- Display the current power scheme: + +`powercfg /getactivescheme` + +- List all available power schemes: + +`powercfg {{[/L|/list]}}` + +- Set the active power scheme by its GUID: + +`powercfg /setactive {{GUID}}` + +- Turn off the display after a specific number of minutes on AC power: + +`powercfg {{[/X|/change]}} monitor-timeout-ac {{minutes}}` + +- Turn off the display after a specific number of minutes on battery power: + +`powercfg {{[/X|/change]}} monitor-timeout-dc {{minutes}}` + +- Put the system to sleep after a specific number of minutes on AC power: + +`powercfg {{[/X|/change]}} standby-timeout-ac {{minutes}}` + +- Generate a system sleep diagnostics report and save it to a file: + +`powercfg /sleepstudy /output {{path o eport.html}}` + +- Generate a full power efficiency report and save it to a file: + +`powercfg /energy /output {{path o eport.html}}` diff --git a/tldr/windows/wget b/tldr/windows/wget index 33c01600..4bdd671b 100644 --- a/tldr/windows/wget +++ b/tldr/windows/wget @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - View documentation for the original `wget` command: -`tldr wget -p common` +`tldr wget {{[-p|--platform]}} common` - View documentation for PowerShell's `Invoke-WebRequest` command: diff --git a/tldr/zapier-history b/tldr/zapier-history new file mode 100644 index 00000000..559592ab --- /dev/null +++ b/tldr/zapier-history @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# zapier history + +> List the history for a Zapier integration. +> More information: . + +- List the history for an integration: + +`zapier history` + +- Display additional debug output: + +`zapier history {{[-d|--debug]}}` + +- List the history with a different output structure: + +`zapier history {{[-f|--format]}} {{plain|json|raw|row|table}}` diff --git a/tldr/zapier-login b/tldr/zapier-login new file mode 100644 index 00000000..c30ea1e6 --- /dev/null +++ b/tldr/zapier-login @@ -0,0 +1,21 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# zapier login + +> Log in to a Zapier account. +> More information: . + +- Log in to a Zapier account: + +`zapier login` + +- Log in to a Zapier account with a deploy key for SSO: + +`zapier login {{[-s|--sso]}}` + +- Display additional debug output: + +`zapier login {{[-d|--debug]}}` diff --git a/tldr/zipnote b/tldr/zipnote index a21b113d..f3cedb0e 100644 --- a/tldr/zipnote +++ b/tldr/zipnote @@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git - Add/Update comments in a Zip archive from a file: -`zipnote -w {{path/to/file.zip}} < {{path/to/file.txt}}` +`zipnote < {{path/to/file.txt}} -w {{path/to/file.zip}}`