Update cheatsheets

This commit is contained in:
ivuorinen
2025-11-14 00:20:50 +00:00
parent 366b13ffac
commit 2f0bb2e110
24 changed files with 260 additions and 33 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# claude
> An agent-based coding tool that understands your code base and helps you code faster through natural language commands.
> More information: <https://docs.anthropic.com/en/docs/claude-code/overview>.
> More information: <https://code.claude.com/docs/en/overview>.
- Execute with prompt:
@@ -27,3 +27,11 @@ source: https://github.com/tldr-pages/tldr.git
- Get the list of configurations:
`claude config list`
- Continue the most recent session:
`claude {{[-c|--continue]}}`
- Interactively select a session to continue:
`claude {{[-r|--resume]}}`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Start playing music:
`clementine {{url|path/to/music.ext}}`
`clementine {{URL|path/to/music.ext}}`
- Toggle between pausing and playing:
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Create a new playlist with one or more music files or URLs:
`clementine {{[-c|--create]}} {{url1 url2 ...|path/to/music1.ext path/to/music2.ext ...}}`
`clementine {{[-c|--create]}} {{URL1|path/to/music1.ext URL2|path/to/music2.ext ...}}`
- Load a playlist file:

View File

@@ -6,21 +6,37 @@ source: https://github.com/tldr-pages/tldr.git
# cradle
> The Cradle PHP framework.
> Some subcommands such as `install` have their own usage documentation.
> More information: <https://cradlephp.github.io>.
> Some subcommands such as `install` and `package` have their own usage documentation.
> More information: <https://cradlephp.github.io/docs/3.B.-Reference-Command-Line-Tools.html>.
- Connect to a server:
- Install Cradle components (prompts for additional info):
`cradle install`
- Force install and overwrite files:
`cradle install {{[-f|--force]}}`
- Connect to a remote server (see `config/deploy.php`):
`cradle connect {{server_name}}`
- Execute a Cradle command:
- Display the current Cradle configuration:
`cradle {{command}}`
`cradle config show`
- Install a package into the current Cradle instance:
`cradle package install {{package_name}}`
- List installed packages:
`cradle package list`
- Display help:
`cradle help`
- Display help for a specific command:
- Display version:
`cradle {{command}} help`
`cradle --version`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- Compile one or more C# files to a CIL executable:
`csc {{path/to/input_file_a.cs}} {{path/to/input_file_b.cs}}`
`csc {{path/to/input_file1.cs path/to/input_file2.cs ...}}`
- Specify the output filename:

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Replace a `regex` in case-insensitive mode in specific files or directories:
`fastmod --ignore-case {{regex}} {{replacement}} -- {{path/to/file path/to/directory ...}}`
`fastmod --ignore-case {{regex}} {{replacement}} -- {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Replace a `regex` in a specific directory in files filtered with a case-insensitive glob pattern:

29
tldr/jj-next Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jj next
> Move the working-copy commit to a child revision.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-next>.
- Move the working-copy commit to the next child revision:
`jj next`
- Move the working-copy commit a number of revisions forward:
`jj next {{offset}}`
- Edit the child revision directly, instead of creating a new working-copy commit:
`jj next {{[-e|--edit]}}`
- Create a new working-copy commit instead of editing the child revision directly:
`jj next {{[-n|--no-edit]}}`
- Jump to the next conflicted child:
`jj next --conflict`

29
tldr/jj-prev Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# jj prev
> Move the working-copy commit to a parent revision.
> More information: <https://jj-vcs.github.io/jj/latest/cli-reference/#jj-prev>.
- Move the working-copy commit to the previous parent revision:
`jj prev`
- Move the working-copy commit a number of revisions backward:
`jj prev {{offset}}`
- Edit the parent revision directly, instead of creating a new working-copy commit:
`jj prev {{[-e|--edit]}}`
- Create a new working-copy commit instead of editing the parent revision directly:
`jj prev {{[-n|--no-edit]}}`
- Jump to the previous conflicted parent:
`jj prev --conflict`

21
tldr/linux/autoexpect Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# autoexpect
> Generate a script from watching a session.
> More information: <https://manned.org/autoexpect>.
- Spawn a shell and generate a script from it:
`autoexpect`
- Run a command and generate a script from it:
`autoexpect {{command}}`
- Run a command, generate a script, and save the script to a specified file:
`autoexpect -f {{path/to/file}} {{command}}`

25
tldr/linux/koji-cancel Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji cancel
> Cancel active tasks running on the Koji build system.
> More information: <https://docs.pagure.org/koji/>.
- Cancel a task by its ID:
`koji cancel {{task_id}}`
- Cancel multiple tasks:
`koji cancel {{task_id1 task_id2 ...}}`
- Cancel a task with verbose output:
`koji cancel --verbose {{task_id}}`
- Display help:
`koji cancel {{[-h|--help]}}`

17
tldr/linux/koji-taginfo Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji taginfo
> Print basic information about a tag.
> More information: <https://docs.pagure.org/koji>.
- Print basic information:
`koji taginfo {{tag1 tag2 ...}}`
- Display help:
`koji taginfo --help`

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# koji untag-build
> Remove a tag from one or more builds.
> More information: <https://docs.pagure.org/koji>.
- Remove a tag from one or more builds:
`koji untag-build {{tag}} {{NVR1 NVR2 ...}}`
- Untag all versions of the package in this tag:
`koji untag-build {{tag}} {{pkg1 pkg2 ...}} --all`
- Untag all versions of the package in this tag except the latest:
`koji untag-build {{tag}} {{pkg1 pkg2 ...}} --non-latest`
- Test mode:
`koji untag-build {{tag}} {{NVR1 NVR2 ...}} {{[-n|--test]}}`
- Print details:
`koji untag-build {{tag}} {{NVR1 NVR2 ...}} {{[-v|--verbose]}}`
- Display help:
`koji untag-build --help`

View File

@@ -21,9 +21,9 @@ source: https://github.com/tldr-pages/tldr.git
`sudo setsebool -P {{container_use_devices}} {{1|true|on|0|false|off}}`
- Set or unset multiple booleans [P]ersistently at once:
- Set or unset multiple booleans at once [P]ersistently:
`sudo setsebool -P {{ftpd_use_fusefs=1 mount_anyfile=0 ...}}`
`sudo setsebool -P {{key1 1 key2 0 ...}}`
- Set or unset a boolean persistently (alternative method using `semanage-boolean`):

View File

@@ -23,3 +23,15 @@ source: https://github.com/tldr-pages/tldr.git
- Execute a command as another user:
`su - {{username}} {{[-c|--command]}} "{{command}}"`
- Switch to a given user and use a specific shell (e.g., zsh, fish, bash):
`su {{[-s|--shell]}} /{{path/to/shell}} {{username}}`
- Display help:
`su {{[-h|--help]}}`
- Display version:
`su {{[-V|--version]}}`

View File

@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
- Reload multiple services:
`systemctl reload {{networking apache2 ...}}`
`systemctl reload {{unit1 unit2 ...}}`
- Reload a service for the current user:

View File

@@ -11,4 +11,8 @@ source: https://github.com/tldr-pages/tldr.git
- Flip the current (non-persistent) values of the specified booleans:
`sudo togglesebool {{virt_use_samba virt_use_usb ...}}`
`sudo togglesebool {{virt_use_samba|virt_use_usb|...}}`
- Flip multiple booleans:
`sudo togglesebool {{key1 key2 ...}}`

33
tldr/linux/xfs_admin Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# xfs_admin
> Tune an XFS filesystem.
> More information: <https://manned.org/xfs_admin>.
- Display the filesystem label:
`sudo xfs_admin {{[-l|--list]}} {{/dev/sdX}}`
- Set the filesystem label:
`sudo xfs_admin {{[-L|--Label]}} "{{label}}" {{/dev/sdX}}`
- Display the filesystem UUID:
`sudo xfs_admin {{[-u|--uuid]}} {{/dev/sdX}}`
- Set the filesystem UUID (use with caution):
`sudo xfs_admin {{[-U|--UUID]}} {{uuid}} {{/dev/sdX}}`
- Generate a new UUID for the filesystem:
`sudo xfs_admin {{[-U|--UUID]}} generate {{/dev/sdX}}`
- Display help:
`xfs_admin`

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- Play an audio source exactly `n` times (0 means forever):
`mpg321 {{[-l|--loop]}} {{n}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
`mpg321 {{[-l|--loop]}} {{n}} {{path/to/file1|URL1 path/to/file2|URL2 ...}}`
- Play a directory recursively:
@@ -19,15 +19,15 @@ source: https://github.com/tldr-pages/tldr.git
- Enable Basic Keys ( `*` or `/` - Increase or decrease volume, `n` - Skip song, `m` - Mute/unmute.) while playing:
`mpg321 -K {{path/to/file_a|URL path/to/file_b|URL ...}}`
`mpg321 -K {{path/to/file1|URL1 path/to/file2|URL2 ...}}`
- Play files randomly until interrupted:
`mpg321 {{[-Z|--random]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
`mpg321 {{[-Z|--random]}} {{path/to/file1|URL1 path/to/file2|URL2 ...}}`
- Shuffle the files before playing them once:
`mpg321 {{[-z|--shuffle]}} {{path/to/file_a|URL path/to/file_b|URL ...}}`
`mpg321 {{[-z|--shuffle]}} {{path/to/file1|URL1 path/to/file2|URL2 ...}}`
- Play all files in the current directory and subdirectories, randomly (until interrupted), with Basic Keys enabled:

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Execute one or more commands in non-interactive mode:
`newsboat {{[-x|--execute]}} {{reload print-unread ...}}`
`newsboat {{[-x|--execute]}} {{reload|print-unread|...}}`
- See keyboard shortcuts (the most relevant are visible in the status line):

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Get multiple properties at once:
`npm pkg get {{name version ...}}`
`npm pkg get {{name|version|...}}`
- Get multiple values across all workspaces:

View File

@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
- Request search results from specific search engines:
`onionsearch "{{string}}" --engines {{tor66 deeplink phobos ...}}`
`onionsearch "{{string}}" --engines {{tor66|deeplink|phobos|...}}`
- Exclude certain search engines when searching:
`onionsearch "{{string}}" --exclude {{candle ahmia ...}}`
`onionsearch "{{string}}" --exclude {{candle|ahmia|...}}`
- Limit the number of pages to load per engine:
`onionsearch "{{stuxnet}}" --engines {{tor66 deeplink phobos ...}} --limit {{3}}`
`onionsearch "{{stuxnet}}" --engines {{tor66|deeplink|phobos|...}} --limit {{3}}`
- List all supported search engines:

View File

@@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run checks for selected AWS services:
`prowler aws {{[-s|--services]}} {{s3 ec2 ...}}`
`prowler aws {{[-s|--services]}} {{s3|ec2|...}}`
- Run a specific AWS check:
@@ -27,4 +27,4 @@ source: https://github.com/tldr-pages/tldr.git
- Exclude specific checks or services:
`prowler aws {{[-e|--excluded-checks]}} {{s3_bucket_public_access}} --exclude-services {{s3 ec2 ...}}`
`prowler aws {{[-e|--excluded-checks]}} {{s3_bucket_public_access}} --exclude-services {{s3|ec2|...}}`

View File

@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run checks for selected Azure services:
`prowler azure {{[-s|--services]}} {{defender iam ...}}`
`prowler azure {{[-s|--services]}} {{defender|iam|...}}`
- Run a specific Azure check:
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
- Exclude specific checks or services:
`prowler azure {{[-e|--excluded-checks]}} {{storage_blob_public_access_level_is_disabled}} --exclude-services {{defender iam ...}}`
`prowler azure {{[-e|--excluded-checks]}} {{storage_blob_public_access_level_is_disabled}} --exclude-services {{defender|iam|...}}`

View File

@@ -23,7 +23,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run checks for selected GCP services:
`prowler gcp {{[-s|--services]}} {{iam compute ...}}`
`prowler gcp {{[-s|--services]}} {{iam|compute|...}}`
- Run a specific GCP check:
@@ -31,4 +31,4 @@ source: https://github.com/tldr-pages/tldr.git
- Exclude specific checks or services:
`prowler gcp {{[-e|--excluded-checks]}} {{gcp_storage_bucket_logging_enabled}} --exclude-services {{iam compute ...}}`
`prowler gcp {{[-e|--excluded-checks]}} {{gcp_storage_bucket_logging_enabled}} --exclude-services {{iam|compute|...}}`

View File

@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Run checks for selected Kubernetes services:
`prowler kubernetes {{[-s|--services]}} {{ietcd apiserver ...}}`
`prowler kubernetes {{[-s|--services]}} {{ietcd|apiserver|...}}`
- Run a specific Kubernetes check:
@@ -35,4 +35,4 @@ source: https://github.com/tldr-pages/tldr.git
- Exclude specific checks or services:
`prowler kubernetes {{[-e|--excluded-checks]}} {{etcd_encryption}} --exclude-services {{ietcd apiserver ...}}`
`prowler kubernetes {{[-e|--excluded-checks]}} {{etcd_encryption}} --exclude-services {{ietcd|apiserver|...}}`