From 191a6f336efa88b39bf95931c49e29459c17d710 Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Tue, 22 Jul 2025 00:22:06 +0000 Subject: [PATCH] Update cheatsheets --- tldr/arthas | 2 +- tldr/arthas-trace | 2 +- tldr/az-upgrade | 2 +- tldr/cargo-rustc | 2 +- tldr/fish | 12 ++++++------ tldr/linux/kreadconfig5 | 2 +- tldr/linux/mke2fs | 6 +++--- tldr/linux/qm-clone | 12 ++++++------ tldr/linux/qm-disk-import | 2 +- tldr/mid3v2 | 14 +++++++------- tldr/pi3topbm | 2 +- tldr/scim | 34 ++++++++++++++++++++++++++++++++++ tldr/st-util | 6 +++--- 13 files changed, 66 insertions(+), 32 deletions(-) create mode 100644 tldr/scim diff --git a/tldr/arthas b/tldr/arthas index 58d45a04..acb439bc 100644 --- a/tldr/arthas +++ b/tldr/arthas @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Exit the current Arthas client without affecting other clients. equals `exit`、`logout`、`q` command: -`exit|quit|logout|q` +`{{exit|quit|logout|q}}` - Terminate the Arthas server, all the Arthas clients connecting to this server will be disconnected: diff --git a/tldr/arthas-trace b/tldr/arthas-trace index 046ac9a4..1b453d94 100644 --- a/tldr/arthas-trace +++ b/tldr/arthas-trace @@ -19,7 +19,7 @@ source: https://github.com/tldr-pages/tldr.git - Trace the invoke chain of multiple classes or multiple methods: -`trace -E {{class-pattern1|class-patter2}} {{method-pattern1|method-pattern2|method-pattern3}}` +`trace -E {{class-pattern1}}|{{class-patter2}} {{method-pattern1}}|{{method-pattern2}}|{{method-pattern3}}` - Track method invoke chains, only display invoke information that exceeds 10 ms, and exit after 5 times: diff --git a/tldr/az-upgrade b/tldr/az-upgrade index 11ae6a49..bc834a91 100644 --- a/tldr/az-upgrade +++ b/tldr/az-upgrade @@ -19,4 +19,4 @@ source: https://github.com/tldr-pages/tldr.git - Upgrade Azure CLI and Extensions without prompting for confirmation: -`az version --all {{[-y|--yes]}}` +`az upgrade --all {{[-y|--yes]}}` diff --git a/tldr/cargo-rustc b/tldr/cargo-rustc index 4af699c5..73a69e27 100644 --- a/tldr/cargo-rustc +++ b/tldr/cargo-rustc @@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git - Build only the specified binary: -`cargo --bin {{name}}` +`cargo rustc --bin {{name}}` diff --git a/tldr/fish b/tldr/fish index 56342821..126c6996 100644 --- a/tldr/fish +++ b/tldr/fish @@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git # fish > The Friendly Interactive SHell, a command-line interpreter designed to be user friendly. -> More information: . +> More information: . - Start an interactive shell session: @@ -14,11 +14,11 @@ source: https://github.com/tldr-pages/tldr.git - Start an interactive shell session without loading startup configs: -`fish --no-config` +`fish {{[-N|--no-config]}}` - Execute specific commands: -`fish --command "{{echo 'fish is executed'}}"` +`fish {{[-c|--command]}} "{{echo 'fish is executed'}}"` - Execute a specific script: @@ -26,7 +26,7 @@ source: https://github.com/tldr-pages/tldr.git - Check a specific script for syntax errors: -`fish --no-execute {{path/to/script.fish}}` +`fish {{[-N|--no-execute]}} {{path/to/script.fish}}` - Execute specific commands from `stdin`: @@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git - Start an interactive shell session in private mode, where the shell does not access old history or save new history: -`fish --private` +`fish {{[-P|--private]}}` - Define and export an environmental variable that persists across shell restarts (builtin): -`set --universal --export {{variable_name}} {{variable_value}}` +`set {{[-U|--universal]}} {{[-x|--export]}} {{variable_name}} {{variable_value}}` diff --git a/tldr/linux/kreadconfig5 b/tldr/linux/kreadconfig5 index 68c37dc3..2689f612 100644 --- a/tldr/linux/kreadconfig5 +++ b/tldr/linux/kreadconfig5 @@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git - Read a key from a specific configuration file: -`kwriteconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key_name}}` +`kreadconfig5 --file {{path/to/file}} --group {{group_name}} --key {{key_name}}` - Check if systemd is used to start the Plasma session: diff --git a/tldr/linux/mke2fs b/tldr/linux/mke2fs index 372b8469..4d1c8e30 100644 --- a/tldr/linux/mke2fs +++ b/tldr/linux/mke2fs @@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git - Create an ext2 filesystem in partition 1 of device b (`sdb1`): -`mkfs.ext2 {{/dev/sdb1}}` +`mke2fs -t ext2 {{/dev/sdb1}}` - Create an ext3 filesystem in partition 1 of device b (`sdb1`): -`mkfs.ext3 {{/dev/sdb1}}` +`mke2fs -t ext3 {{/dev/sdb1}}` - Create an ext4 filesystem in partition 1 of device b (`sdb1`): -`mkfs.ext4 {{/dev/sdb1}}` +`mke2fs -t ext4 {{/dev/sdb1}}` diff --git a/tldr/linux/qm-clone b/tldr/linux/qm-clone index 898d826e..b470d5df 100644 --- a/tldr/linux/qm-clone +++ b/tldr/linux/qm-clone @@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git - Copy a virtual machine: -`qm copy {{vm_id}} {{new_vm_id}}` +`qm clone {{vm_id}} {{new_vm_id}}` - Copy a virtual machine using a specific name: -`qm copy {{vm_id}} {{new_vm_id}} --name {{name}}` +`qm clone {{vm_id}} {{new_vm_id}} --name {{name}}` - Copy a virtual machine using a specific descriptionn: -`qm copy {{vm_id}} {{new_vm_id}} --description {{description}}` +`qm clone {{vm_id}} {{new_vm_id}} --description {{description}}` - Copy a virtual machine creating a full copy of all disks: -`qm copy {{vm_id}} {{new_vm_id}} --full` +`qm clone {{vm_id}} {{new_vm_id}} --full` - Copy a virtual machine using a specific format for file storage (requires `--full`): -`qm copy {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}` +`qm clone {{vm_id}} {{new_vm_id}} --full --format {{qcow2|raw|vmdk}}` - Copy a virtual machine then add it to a specific pool: -`qm copy {{vm_id}} {{new_vm_id}} --pool {{pool_name}}` +`qm clone {{vm_id}} {{new_vm_id}} --pool {{pool_name}}` diff --git a/tldr/linux/qm-disk-import b/tldr/linux/qm-disk-import index 94dd9d3d..ee157dc5 100644 --- a/tldr/linux/qm-disk-import +++ b/tldr/linux/qm-disk-import @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Import a VMDK/qcow2/raw disk image using a specific storage name: -`qm importdisk {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` +`qm disk import {{vm_id}} {{path/to/disk}} {{storage_name}} --format {{qcow2|raw|vmdk}}` diff --git a/tldr/mid3v2 b/tldr/mid3v2 index c77fb1cf..3716552c 100644 --- a/tldr/mid3v2 +++ b/tldr/mid3v2 @@ -11,28 +11,28 @@ source: https://github.com/tldr-pages/tldr.git - List all supported ID3v2.3 or ID3v2.4 frames and their meanings: -`id3v2 --list-frames {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --list-frames {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - List all supported ID3v1 numeric genres: -`id3v2 --list-genres {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --list-genres {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - List all tags in specific files: -`id3v2 --list {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --list {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - Set specific artist, album, or song information: -`id3v2 {{--artist|--album|--song}}={{string}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 {{--artist|--album|--song}}={{string}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - Set specific picture information: -`id3v2 --picture={{filename:description:image_type:mime_type}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --picture={{filename:description:image_type:mime_type}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - Set specific year information: -`id3v2 --year={{YYYY}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --year={{YYYY}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` - Set specific date information: -`id3v2 --date={{YYYY-MM-DD}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` +`mid3v2 --date={{YYYY-MM-DD}} {{path/to/file1.mp3 path/to/file2.mp3 ...}}` diff --git a/tldr/pi3topbm b/tldr/pi3topbm index d2faa7fc..89ea5619 100644 --- a/tldr/pi3topbm +++ b/tldr/pi3topbm @@ -11,4 +11,4 @@ source: https://github.com/tldr-pages/tldr.git - Convert an Atari Degas PI3 image to PBM image: -`pi1topbm {{path/to/atari_image.pi3}} > {{path/to/output_image.pbm}}` +`pi3topbm {{path/to/atari_image.pi3}} > {{path/to/output_image.pbm}}` diff --git a/tldr/scim b/tldr/scim new file mode 100644 index 00000000..e3895448 --- /dev/null +++ b/tldr/scim @@ -0,0 +1,34 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# scim + +> A curses based, vim-like spreadsheet calculator. +> Use `` or `` to navigate. +> More information: . + +- Start SC-IM: + +`scim {{path/to/file.csv}}` + +- Enter a string into the current cell: + +`{{<<>|<>>}}` + +- Enter a numeric constant into the current cell: + +`<=>` + +- Edit string in the current cell: + +`` + +- Edit number in the current cell: + +`` + +- Center align the current cell: + +`<|>` diff --git a/tldr/st-util b/tldr/st-util index d633d1da..f0e85168 100644 --- a/tldr/st-util +++ b/tldr/st-util @@ -12,10 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `st-util {{[-p|--listen_port]}} {{4500}}` -- Connect to GDB server: +- Connect to GDB server within `gdb`: -`(gdb) target extended-remote {{localhost}}:{{4500}}` +`target extended-remote {{localhost}}:{{4500}}` - Write firmware to device: -`(gdb) load {{firmware.elf}}` +`load {{firmware.elf}}`