From b6a6d775f56b18dbd070fc9421688fcae19578e2 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Fri, 23 Jan 2026 00:23:11 +0000 Subject: [PATCH] Update cheatsheets --- tldr/age | 10 ++++----- tldr/alr-version | 17 +++++++++++++++ tldr/linux/busctl | 2 +- tldr/linux/cryptsetup | 4 ++++ tldr/linux/ddcutil | 20 ++++++++++++------ tldr/linux/networkctl | 2 +- tldr/linux/oomctl | 2 +- tldr/linux/powerprofilesctl | 2 +- tldr/linux/systemd-hwdb | 6 +++--- tldr/linux/systemd-inhibit | 2 +- tldr/linux/systemd-sysext | 2 +- tldr/linux/updatectl | 2 +- tldr/linux/userdbctl | 2 +- tldr/ng-lint | 30 ++++++++++++++++++++++++++ tldr/sq | 42 +++++++++++++++++++++++++++++++++++++ tldr/tldr | 4 ++-- 16 files changed, 125 insertions(+), 24 deletions(-) create mode 100644 tldr/alr-version create mode 100644 tldr/ng-lint create mode 100644 tldr/sq diff --git a/tldr/age b/tldr/age index 6325bf3d..4cc3f083 100644 --- a/tldr/age +++ b/tldr/age @@ -11,20 +11,20 @@ source: https://github.com/tldr-pages/tldr.git - Generate an encrypted file that can be decrypted with a passphrase: -`age {{[-p|--passphrase]}} {{[-o|--output]}} {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` +`age {{[-p|--passphrase]}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}` - Encrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys): -`age {{[-r|--recipient]}} {{public_key}} {{[-o|--output]}} {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` +`age {{[-r|--recipient]}} {{public_key}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}` - Encrypt a file to one or more recipients with their public keys specified in a file (one per line): -`age {{[-R|--recipients-file]}} {{path/to/recipients_file}} {{[-o|--output]}} {{path/to/encrypted_file}} {{path/to/unencrypted_file}}` +`age {{[-R|--recipients-file]}} {{path/to/recipients_file.txt}} {{[-o|--output]}} {{path/to/encrypted_file.age}} {{path/to/unencrypted_file}}` - Decrypt a file with a passphrase: -`age {{[-d|--decrypt]}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file}}` +`age {{[-d|--decrypt]}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file.age}}` - Decrypt a file with a private key file: -`age {{[-d|--decrypt]}} {{[-i|--identity]}} {{path/to/private_key_file}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file}}` +`age {{[-d|--decrypt]}} {{[-i|--identity]}} {{path/to/private_key_file}} {{[-o|--output]}} {{path/to/decrypted_file}} {{path/to/encrypted_file.age}}` diff --git a/tldr/alr-version b/tldr/alr-version new file mode 100644 index 00000000..076d7f16 --- /dev/null +++ b/tldr/alr-version @@ -0,0 +1,17 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# alr version + +> Display Alire (`alr`) and environment version information. +> More information: . + +- Display version: + +`alr --version` + +- Display the Alire environment version: + +`alr version` diff --git a/tldr/linux/busctl b/tldr/linux/busctl index cd90a072..00422139 100644 --- a/tldr/linux/busctl +++ b/tldr/linux/busctl @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Show all peers on the bus by their service names: -`busctl list` +`busctl` - Show process information and credentials of a bus service, a process, or the owner of the bus (if no parameter is specified): diff --git a/tldr/linux/cryptsetup b/tldr/linux/cryptsetup index 89e5caf5..06352349 100644 --- a/tldr/linux/cryptsetup +++ b/tldr/linux/cryptsetup @@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git - Change a LUKS volume's passphrase: `cryptsetup luksChangeKey {{/dev/sdXY}}` + +- Display LUKS header information and key slot metadata of an encrypted device: + +`cryptsetup luksDump {{/dev/sdXY}}` diff --git a/tldr/linux/ddcutil b/tldr/linux/ddcutil index 1965d557..ec4ccc70 100644 --- a/tldr/linux/ddcutil +++ b/tldr/linux/ddcutil @@ -12,16 +12,24 @@ source: https://github.com/tldr-pages/tldr.git - List all compatible displays: -`ddcutil detect` +`ddcutil {{[det|detect]}}` -- Change the brightness (option 0x10) of display 1 to 50%: +- Query the first compatible display for capabilities: -`ddcutil {{[-d|--display]}} {{1}} setvcp {{10}} {{50}}` +`ddcutil {{[cap|capabilities]}}` -- Increase the contrast (option 0x12) of display 1 by 5%: +- Change the brightness (option `10`) of display 1 to 50%: -`ddcutil {{[-d|--display]}} {{1}} setvcp {{12}} {{+}} {{5}}` +`ddcutil {{[-d|--display]}} 1 {{[set|setvcp]}} 10 50` + +- Increase the contrast (option `12`) of display 1 by 5%: + +`ddcutil {{[-d|--display]}} 1 {{[set|setvcp]}} 12 + 5` + +- Change the display source (option `60`) of a display: + +`ddcutil {{[-d|--display]}} {{1}} {{[set|setvcp]}} 60 0x{{0f}}` - Read the settings of display 1: -`ddcutil {{[-d|--display]}} {{1}} getvcp {{ALL}}` +`ddcutil {{[-d|--display]}} 1 {{[get|getvcp]}} ALL` diff --git a/tldr/linux/networkctl b/tldr/linux/networkctl index 0d20098f..1dd6d6c4 100644 --- a/tldr/linux/networkctl +++ b/tldr/linux/networkctl @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - List existing links with their status: -`networkctl list` +`networkctl` - Show an overall network status: diff --git a/tldr/linux/oomctl b/tldr/linux/oomctl index c7fc0e1b..29a104e2 100644 --- a/tldr/linux/oomctl +++ b/tldr/linux/oomctl @@ -10,4 +10,4 @@ source: https://github.com/tldr-pages/tldr.git - Show the current state of the cgroups and system contexts stored by `systemd-oomd`: -`oomctl dump` +`oomctl` diff --git a/tldr/linux/powerprofilesctl b/tldr/linux/powerprofilesctl index eef10bec..98849d40 100644 --- a/tldr/linux/powerprofilesctl +++ b/tldr/linux/powerprofilesctl @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - List available power profiles: -`powerprofilesctl list` +`powerprofilesctl` - Set a specific power profile: diff --git a/tldr/linux/systemd-hwdb b/tldr/linux/systemd-hwdb index 8d9bd8da..6f038c0f 100644 --- a/tldr/linux/systemd-hwdb +++ b/tldr/linux/systemd-hwdb @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - Update the binary hardware database in `/etc/udev`: -`systemd-hwdb update` +`sudo systemd-hwdb update` - Query the hardware database and print the result for a specific modalias: @@ -18,11 +18,11 @@ source: https://github.com/tldr-pages/tldr.git - Update the binary hardware database, returning a non-zero exit value on any parsing error: -`systemd-hwdb {{[-s|--strict]}} update` +`sudo systemd-hwdb {{[-s|--strict]}} update` - Update the binary hardware database in `/usr/lib/udev`: -`systemd-hwdb --usr update` +`sudo systemd-hwdb --usr update` - Update the binary hardware database in the specified root path: diff --git a/tldr/linux/systemd-inhibit b/tldr/linux/systemd-inhibit index 77e5da04..74b76aa5 100644 --- a/tldr/linux/systemd-inhibit +++ b/tldr/linux/systemd-inhibit @@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git - List all active inhibition locks and the reasons for their creation: -`systemd-inhibit --list` +`systemd-inhibit` - Block system shutdown for a specified number of seconds with the `sleep` command: diff --git a/tldr/linux/systemd-sysext b/tldr/linux/systemd-sysext index 4e4f0afc..689391e0 100644 --- a/tldr/linux/systemd-sysext +++ b/tldr/linux/systemd-sysext @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Check the current merge status: -`systemd-sysext status` +`systemd-sysext` - Unmerge all currently installed system extension images from `/usr/` and `/opt/`: diff --git a/tldr/linux/updatectl b/tldr/linux/updatectl index 5f3ddeae..28e91bdc 100644 --- a/tldr/linux/updatectl +++ b/tldr/linux/updatectl @@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git - Show update targets: -`updatectl list` +`updatectl` - Show data about a target and its versions: diff --git a/tldr/linux/userdbctl b/tldr/linux/userdbctl index 90bdc842..79ae2fde 100644 --- a/tldr/linux/userdbctl +++ b/tldr/linux/userdbctl @@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git - List all known user records: -`userdbctl user` +`userdbctl` - Show details of a specific user: diff --git a/tldr/ng-lint b/tldr/ng-lint new file mode 100644 index 00000000..0449fa3f --- /dev/null +++ b/tldr/ng-lint @@ -0,0 +1,30 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# ng lint + +> Check Angular project code for style and errors using the configured linter. +> Note: Linting requires setup via `ng add`. +> More information: . + +- Lint all projects in the workspace: + +`ng lint` + +- Lint a specific project: + +`ng lint {{project_name}}` + +- Automatically fix linting errors: + +`ng lint {{project_name}} --fix` + +- Return a successful exit code even if lint errors are found: + +`ng lint {{project_name}} --force` + +- Use a specific output format: + +`ng lint {{project_name}} --format {{stylish|json|...}}` diff --git a/tldr/sq b/tldr/sq new file mode 100644 index 00000000..42ebaf64 --- /dev/null +++ b/tldr/sq @@ -0,0 +1,42 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# sq + +> A modern OpenPGP command-line tool. +> See also: `gpg`. +> More information: . + +- Encrypt a file using a password (symmetric encryption): + +`sq encrypt --with-password --without-signature {{path/to/file}} --output {{path/to/file.pgp}}` + +- Decrypt a password-protected file: + +`sq decrypt {{path/to/file.pgp}} --output {{path/to/file}}` + +- Inspect an OpenPGP file to see its metadata and structure: + +`sq inspect {{path/to/file.pgp}}` + +- Verify a file with a detached signature and a certificate file: + +`sq verify --signer-file {{path/to/signer.asc}} --signature-file {{path/to/file.sig}} {{path/to/file}}` + +- Verify a file with an embedded (cleartext) signature and a certificate file: + +`sq verify --signer-file {{path/to/signer.asc}} --cleartext {{path/to/file}}` + +- Generate own key, and save it on the local key store: + +`sq key generate --own-key --name {{name}} --email {{name@example.com}}` + +- List all secret keys or certs managed by the local key store: + +`sq {{key|cert}} list` + +- List current configuration and storage paths: + +`sq config inspect paths` diff --git a/tldr/tldr b/tldr/tldr index 6e1e26d4..163719eb 100644 --- a/tldr/tldr +++ b/tldr/tldr @@ -33,9 +33,9 @@ source: https://github.com/tldr-pages/tldr.git `tldr {{[-l|--list]}}` -- List all available subcommand pages for a command: +- Browse tldr pages in a terminal window (`fzf` must be available): -`tldr {{[-l|--list]}} | grep {{command}} | column` +`tldr {{[-l|--list]}} | fzf --preview "tldr {1} --color=always" --preview-window=right,70% | xargs tldr` - Print the tldr page for a random command: