mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/age
10
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}}`
|
||||
|
||||
17
tldr/alr-version
Normal file
17
tldr/alr-version
Normal file
@@ -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: <https://alire.ada.dev/docs/#inspecting-your-settings>.
|
||||
|
||||
- Display version:
|
||||
|
||||
`alr --version`
|
||||
|
||||
- Display the Alire environment version:
|
||||
|
||||
`alr version`
|
||||
@@ -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):
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List available power profiles:
|
||||
|
||||
`powerprofilesctl list`
|
||||
`powerprofilesctl`
|
||||
|
||||
- Set a specific power profile:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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/`:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
30
tldr/ng-lint
Normal file
30
tldr/ng-lint
Normal file
@@ -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: <https://angular.dev/cli/lint>.
|
||||
|
||||
- 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|...}}`
|
||||
42
tldr/sq
Normal file
42
tldr/sq
Normal file
@@ -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: <https://sequoia-pgp.gitlab.io/sequoia-sq/man/sq.1.html>.
|
||||
|
||||
- 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`
|
||||
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user