Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-12 00:18:03 +00:00
parent 4ed84edbe1
commit ffbd8c31db
29 changed files with 244 additions and 70 deletions

View File

@@ -12,21 +12,21 @@ source: https://github.com/tldr-pages/tldr.git
`cal`
- Display [3] months spanning the date:
- Display 3 months spanning the date:
`cal -3`
`cal {{[-3|--three]}}`
- Display the whole calendar for the current [y]ear:
`cal --year`
`cal {{[-y|--year]}}`
- Display the next twelve months:
`cal --twelve`
`cal {{[-Y|--twelve]}}`
- Use Monday as the first day of the week:
`cal --monday`
`cal {{[-m|--monday]}}`
- Display a calendar for a specific year (4 digits):

View File

@@ -26,8 +26,8 @@ source: https://github.com/tldr-pages/tldr.git
- [n]umber all output lines:
`cat -n {{path/to/file}}`
`cat {{[-n|--number]}} {{path/to/file}}`
- Display non-printable and whitespace characters (with `M-` prefix if non-ASCII):
`cat -v -t -e {{path/to/file}}`
`cat {{[-vte|--show-nonprinting -t -e]}} {{path/to/file}}`

View File

@@ -10,19 +10,19 @@ source: https://github.com/tldr-pages/tldr.git
- Open a given serial port:
`sudo cu --line {{/dev/ttyUSB0}}`
`sudo cu --line {{/dev/ttyXYZ}}`
- Open a given serial port with a given baud rate:
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}}`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}}`
- Open a given serial port with a given baud rate and echo characters locally (half-duplex mode):
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --halfduplex`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --halfduplex`
- Open a given serial port with a given baud rate, parity, and no hardware or software flow control:
`sudo cu --line {{/dev/ttyUSB0}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop`
`sudo cu --line {{/dev/ttyXYZ}} --speed {{115200}} --parity={{even|odd|none}} --nortscts --nostop`
- Exit the `cu` session when in connection:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
- Open the man page for a command in a browser (`BROWSER` environment variable can replace `=browser_name`):
`man --html{{=browser_name}} {{command}}`
`man {{[-H|--html=]}}{{browser_name}} {{command}}`
- Display the man page for a command from section 7:
@@ -22,20 +22,20 @@ source: https://github.com/tldr-pages/tldr.git
- List all available sections for a command:
`man --whatis {{command}}`
`man {{[-f|--whatis]}} {{command}}`
- Display the path searched for manpages:
`man --path`
`man {{[-w|--path]}}`
- Display the location of a manpage rather than the manpage itself:
`man --where {{command}}`
`man {{[-w|--where]}} {{command}}`
- Display the man page using a specific locale:
`man --locale {{locale}} {{command}}`
`man {{[-L|--locale]}} {{locale}} {{command}}`
- Search for manpages containing a search string:
`man --apropos "{{search_string}}"`
`man {{[-k|--apropos]}} "{{search_string}}"`

View File

@@ -10,12 +10,16 @@ source: https://github.com/tldr-pages/tldr.git
- Open a given serial port:
`sudo minicom --device {{/dev/ttyUSB0}}`
`sudo minicom --device {{/dev/ttyXYZ}}`
- Open a given serial port with a given baud rate:
`sudo minicom --device {{/dev/ttyUSB0}} --baudrate {{115200}}`
`sudo minicom --device {{/dev/ttyXYZ}} --baudrate {{115200}}`
- Enter the configuration menu before communicating with a given serial port:
`sudo minicom --device {{/dev/ttyUSB0}} --setup`
`sudo minicom --device {{/dev/ttyXYZ}} --setup`
- Exit minicom:
`<Ctrl a><x><Enter>`

17
tldr/linux/pw-reserve Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pw-reserve
> Reserve a device for PipeWire.
> More information: <https://docs.pipewire.org/page_man_pw-reserve_1.html>.
- Reserve a device (currently only supports audio devices):
`pw-reserve {{[-n|--name]}} {{audioN}}`
- Monitor a device instead of reserving it:
`pw-reserve {{[-n|--name]}} {{audioN}} {{[-m|--monitor]}}`

13
tldr/linux/pw-v4l2 Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# pw-v4l2
> Use v4l2 programs within PipeWire.
> More information: <https://docs.pipewire.org/page_man_pw-v4l2_1.html>.
- Run a program:
`pw-v4l2 {{program}}`

12
tldr/linux/trash-empty Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# trash-empty
> This command has been moved to `trash`.
- View documentation for `trash-empty`:
`tldr trash`

12
tldr/linux/trash-list Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# trash-list
> This command has been moved to `trash`.
- View documentation for `trash-list`:
`tldr trash`

12
tldr/linux/trash-put Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# trash-put
> This command is an alias of `trash`.
- View documentation for the original command:
`tldr trash`

12
tldr/linux/trash-restore Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# trash-restore
> This command has been moved to `trash`.
- View documentation for `trash-restore`:
`tldr trash`

12
tldr/linux/trash-rm Normal file
View File

@@ -0,0 +1,12 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# trash-rm
> This command has been moved to `trash`.
- View documentation for `trash-rm`:
`tldr trash`

View File

@@ -10,15 +10,15 @@ source: https://github.com/tldr-pages/tldr.git
- Display power and battery information:
`upower --dump`
`upower {{[-d|--dump]}}`
- List all power devices:
`upower --enumerate`
`upower {{[-e|--enumerate]}}`
- Watch for and print power status changes:
`upower --monitor`
`upower {{[-m|--monitor]}}`
- Watch for and print detailed power status changes:
@@ -26,4 +26,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display version:
`upower --version`
`upower {{[-v|--version]}}`