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:
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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]}}`
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Build only the specified binary:
|
||||
|
||||
`cargo --bin {{name}}`
|
||||
`cargo rustc --bin {{name}}`
|
||||
|
||||
12
tldr/fish
12
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: <https://fishshell.com>.
|
||||
> More information: <https://fishshell.com/docs/current/cmds/fish.html>.
|
||||
|
||||
- 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}}`
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
14
tldr/mid3v2
14
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 ...}}`
|
||||
|
||||
@@ -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}}`
|
||||
|
||||
34
tldr/scim
Normal file
34
tldr/scim
Normal file
@@ -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 `<h><j><k><l>` or `<ArrowKeys>` to navigate.
|
||||
> More information: <https://github.com/andmarti1424/sc-im>.
|
||||
|
||||
- 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:
|
||||
|
||||
`<E>`
|
||||
|
||||
- Edit number in the current cell:
|
||||
|
||||
`<e>`
|
||||
|
||||
- Center align the current cell:
|
||||
|
||||
`<|>`
|
||||
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user