Update cheatsheets

This commit is contained in:
ivuorinen
2025-08-28 00:19:36 +00:00
parent 9565d2532c
commit 241ab8e29f
10 changed files with 189 additions and 28 deletions

34
tldr/linux/cec-client Normal file
View File

@@ -0,0 +1,34 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# cec-client
> Manage serial bus CEC connections.
> See also: `cec-ctl`.
> More information: <https://manned.org/man/cec-client>.
- List all CEC adapters:
`cec-client {{[-l|--list-devices]}}`
- Start an interactive CEC session:
`sudo cec-client`
- Set the On-Screen Display name:
`sudo cec-client {{[-o|--osd-name]}} {{name}}`
- Send a single command:
`echo {{on 0}} | sudo cec-client {{[-s|--single-command]}}`
- Set a device to standby in interactive mode:
`standby {{0}}`
- Turn a device on in interactive mode:
`on {{0}}`

18
tldr/linux/inputattach Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# inputattach
> Attach a device to the Linux input system.
> The input devices are presented as files in `/dev/input/`.
> More information: <https://manned.org/inputattach>.
- Attach a Pulse8 CEC device to the input system:
`inputattach --pulse8-cec {{/dev/ttyACM0}}`
- Display help:
`inputattach --help`

View File

@@ -5,25 +5,12 @@ source: https://github.com/tldr-pages/tldr.git
---
# st
> A simple terminal emulator for the X Window System.
> More information: <https://manned.org/st>.
> `st` can refer to multiple commands.
- Open a terminal:
- View documentation for the terminal emulator:
`st`
`tldr st.1`
- Open a terminal with a specific title:
- View documentation for the statistics tool:
`st -T {{title}}`
- Open a terminal, execute a given command, and write the output to a file:
`st -o {{path/to/file}} -e {{command argument1 argument2}}`
- Increase/decrease the font size:
`<Ctrl Shift {{PageUp|PageDown}}>`
- Copy/paste from the clipboard:
`<Ctrl Shift {{c|v}}>`
`tldr st.2`

29
tldr/linux/st.1 Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# st
> A simple terminal emulator for the X Window System.
> More information: <https://manned.org/st>.
- Open a terminal:
`st`
- Open a terminal with a specific title:
`st -T {{title}}`
- Open a terminal, execute a given command, and write the output to a file:
`st -o {{path/to/file}} -e {{command argument1 argument2}}`
- Increase/decrease the font size:
`<Ctrl Shift {{PageUp|PageDown}}>`
- Copy/paste from the clipboard:
`<Ctrl Shift {{c|v}}>`

29
tldr/linux/vgcfgbackup Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# vgcfgbackup
> Back up volume group configuration metadata to files (not user data).
> More information: <https://manned.org/vgcfgbackup>.
- Back up metadata for all volume groups (to `/etc/lvm/backup/` by default):
`vgcfgbackup`
- Back up metadata for a specific volume group:
`vgcfgbackup {{vg_name}}`
- Write the backup to a specific file:
`vgcfgbackup {{[-f|--file]}} {{path/to/backup}} {{vg_name}}`
- Back up multiple VGs using a filename template (`%s` becomes the VG name):
`vgcfgbackup {{[-f|--file]}} {{/tmp/vg-backup-%s}} {{vg1 vg2 ...}}`
- Increase verbosity (repeat `-v` for more detail):
`vgcfgbackup {{[-v|--verbose]}} {{vg_name}}`