mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 15:57:21 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/argospm
Normal file
12
tldr/argospm
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# argospm
|
||||
|
||||
> This command is an alias of `argos-translate`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr argos-translate`
|
||||
25
tldr/cdparanoia
Normal file
25
tldr/cdparanoia
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# cdparanoia
|
||||
|
||||
> Extract audio tracks from CDs.
|
||||
> More information: <https://xiph.org/paranoia/manual.html>.
|
||||
|
||||
- Extract all tracks and write them into separate WAV files named `track#.wav`:
|
||||
|
||||
`cdparanoia {{[-B|--batch]}}`
|
||||
|
||||
- Print the CD's table of contents to the terminal:
|
||||
|
||||
`cdparanoia {{[-Q|--query]}}`
|
||||
|
||||
- Extract tracks 2 to 5 and write them into a single WAV file:
|
||||
|
||||
`cdparanoia 2-5`
|
||||
|
||||
- Extract track 3 and write it into a file called `path/to/file.wav`:
|
||||
|
||||
`cdparanoia 3 '{{path/to/file.wav}}'`
|
||||
12
tldr/cwebp
12
tldr/cwebp
@@ -8,19 +8,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
> Compress an image file to a WebP file.
|
||||
> More information: <https://developers.google.com/speed/webp/docs/cwebp>.
|
||||
|
||||
- Compress a WebP file with default settings (q = 75) to the [o]utput file:
|
||||
- Compress a WebP file with default settings (lossy compression, q = 75) to the [o]utput file:
|
||||
|
||||
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}}`
|
||||
|
||||
- Compress a WebP file with the best [q]uality and largest file size:
|
||||
- Compress a WebP file with the best lossy compression [q]uality and largest file size:
|
||||
|
||||
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{100}}`
|
||||
|
||||
- Compress a WebP file with the worst [q]uality and smallest file size:
|
||||
- Compress a WebP file with the worst lossy compression [q]uality and smallest file size:
|
||||
|
||||
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -q {{0}}`
|
||||
|
||||
- Compress a WebP file and apply resize to image:
|
||||
- Compress a WebP file with lossless compression and smallest possible file size:
|
||||
|
||||
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -z 9`
|
||||
|
||||
- Compress a WebP file and apply resize to image (if width or height are 0, scaling preserves aspect ratio):
|
||||
|
||||
`cwebp {{path/to/image_file}} -o {{path/to/output.webp}} -resize {{width}} {{height}}`
|
||||
|
||||
|
||||
37
tldr/doxx
Normal file
37
tldr/doxx
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# doxx
|
||||
|
||||
> View `.docx` files in the terminal.
|
||||
> More information: <https://github.com/bgreenwell/doxx#-command-line-options>.
|
||||
|
||||
- View a `.docx` file in the terminal:
|
||||
|
||||
`doxx {{path/to/file}}.docx`
|
||||
|
||||
- View a `.docx` file in the terminal with color support:
|
||||
|
||||
`doxx {{path/to/file}}.docx --color`
|
||||
|
||||
- View a `.docx` file in the terminal with image support:
|
||||
|
||||
`doxx {{path/to/file}}.docx --images`
|
||||
|
||||
- View a `.docx` file in the terminal and jump to a specific page:
|
||||
|
||||
`doxx {{path/to/file}}.docx {{[-p|--page]}} {{page_number}}`
|
||||
|
||||
- Search for a pattern in a `.docx` file:
|
||||
|
||||
`doxx {{path/to/file}}.docx {{[-s|--search]}} {{pattern}}`
|
||||
|
||||
- Search for a pattern while viewing a document:
|
||||
|
||||
`<s>{{pattern}}`
|
||||
|
||||
- Exit document:
|
||||
|
||||
`<q>`
|
||||
@@ -15,4 +15,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Stop a Distrobox container non-interactively (without confirmation):
|
||||
|
||||
`distrobox-stop {{[-n|--name]}} {{container_name}} {{[-Y|--yes]}}`
|
||||
`distrobox-stop {{container_name}} {{[-Y|--yes]}}`
|
||||
|
||||
@@ -15,15 +15,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Run a command with a file lock, or exit if the lock is currently being held (with exit code 1):
|
||||
|
||||
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{command}}`
|
||||
`flock {{[-n|--nonblock]}} {{path/to/lock.lock}} {{command}}`
|
||||
|
||||
- Run a command with a file lock, or exit with a specific error code if the lock is currently being held:
|
||||
|
||||
`flock {{path/to/lock.lock}} {{[-n|--nonblock]}} {{[-E|--conflict-exit-code]}} {{123}} {{command}}`
|
||||
`flock {{[-n|--nonblock]}} {{[-E|--conflict-exit-code]}} {{123}} {{path/to/lock.lock}} {{command}}`
|
||||
|
||||
- Run a command with a file lock, waiting up to 10 seconds for the lock to be available before giving up:
|
||||
|
||||
`flock {{path/to/lock.lock}} {{[-w|--timeout]}} 10 {{command}}`
|
||||
`flock {{[-w|--timeout]}} 10 {{path/to/lock.lock}} {{command}}`
|
||||
|
||||
- Backup a bunch of files, waiting for the previous `tar` command to finish if it's still running elsewhere and holding the same lock file (can be used in a `cron` job that runs often):
|
||||
|
||||
|
||||
@@ -5,13 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# genisoimage
|
||||
|
||||
> Pre-mastering program to generate ISO9660/Joliet/HFS hybrid filesystems.
|
||||
> More information: <https://manned.org/genisoimage>.
|
||||
> This command is an alias of `mkisofs`.
|
||||
|
||||
- Create an ISO image from the given source directory:
|
||||
- View documentation for the original command:
|
||||
|
||||
`genisoimage -o {{myimage.iso}} {{path/to/source_directory}}`
|
||||
|
||||
- Create an ISO image with files larger than 2GiB by reporting a smaller apparent size for ISO9660 filesystems:
|
||||
|
||||
`genisoimage -o -allow-limited-size {{myimage.iso}} {{path/to/source_directory}}`
|
||||
`tldr mkisofs`
|
||||
|
||||
@@ -16,3 +16,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
- Set the disc label when creating an ISO:
|
||||
|
||||
`mkisofs -o {{filename.iso}} -V "{{label_name}}" {{path/to/source_directory}}`
|
||||
|
||||
- Create an ISO image with files larger than 2GiB by reporting a smaller apparent size for ISO9660 filesystems:
|
||||
|
||||
`mkisofs -o {{filename.iso}} -allow-limited-size {{path/to/source_directory}}`
|
||||
|
||||
21
tldr/linux/pipetron
Normal file
21
tldr/linux/pipetron
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pipetron
|
||||
|
||||
> Electron node manager for PipeWire.
|
||||
> More information: <https://codeberg.org/ponleou/pipetron#usage>.
|
||||
|
||||
- Start daemon specified in config file (defaults to volume daemon if not specified):
|
||||
|
||||
`pipetron {{[-d|--daemon]}}`
|
||||
|
||||
- Start volume daemon (mirror volume settings):
|
||||
|
||||
`pipetron {{[-vd|--volume-daemon]}}`
|
||||
|
||||
- Start audio daemon (mirror audio data):
|
||||
|
||||
`pipetron {{[-ad|--audio-daemon]}}`
|
||||
1
tldr/mtr
1
tldr/mtr
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# mtr
|
||||
|
||||
> Matt's Traceroute: combined traceroute and ping tool.
|
||||
> See also: `traceroute`, `ping`.
|
||||
> More information: <https://manned.org/mtr>.
|
||||
|
||||
- Traceroute to a host and continuously ping all intermediary hops:
|
||||
|
||||
@@ -6,6 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# ping
|
||||
|
||||
> Send ICMP ECHO_REQUEST packets to network hosts.
|
||||
> See also: `mtr`.
|
||||
> More information: <https://manned.org/ping>.
|
||||
|
||||
- Ping a host:
|
||||
|
||||
@@ -16,6 +16,10 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
`regedit -D {{path/to/registry_key}}`
|
||||
|
||||
- Open the graphical registry manager:
|
||||
|
||||
`regedit`
|
||||
|
||||
- Display help:
|
||||
|
||||
`regedit -?`
|
||||
|
||||
Reference in New Issue
Block a user