Update cheatsheets

This commit is contained in:
ivuorinen
2025-10-15 00:19:37 +00:00
parent 220486abce
commit d5421f7c01
42 changed files with 459 additions and 43 deletions

33
tldr/linux/eog Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# eog
> View and manage images.
> More information: <https://manned.org/eog>.
- Open an image file:
`eog {{path/to/image.png}}`
- Open multiple images:
`eog {{image1.jpg image2.png ...}}`
- Open images in fullscreen mode:
`eog --fullscreen {{path/to/image.jpg}}`
- Start a slideshow:
`eog --slide-show {{path/to/directory}}`
- Open a single image without image collection:
`eog --single-window {{path/to/image.jpg}}`
- Open an image in a new window instance:
`eog --new-instance {{path/to/image.jpg}}`

21
tldr/linux/lvrename Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# lvrename
> Rename a logical volume.
> More information: <https://manned.org/lvrename>.
- Rename an LV using full paths:
`sudo lvrename {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}`
- Rename an LV using the volume group and names:
`sudo lvrename {{vg_name}} {{old_lv}} {{new_lv}}`
- Answer "yes" to any prompts:
`sudo lvrename {{[-y|--yes]}} {{/dev/vg_name/old_lv}} {{/dev/vg_name/new_lv}}`

View File

@@ -10,11 +10,11 @@ source: https://github.com/tldr-pages/tldr.git
- List all available packages:
`pacfile`
`pacfile {{path/to/file_or_directory}}`
- Compare database values to the file system:
`pacfile --check`
`pacfile {{path/to/file_or_directory}} --check`
- Display help:

View File

@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
- List configured sections:
`pacini --section-list`
`pacini {{path/to/file}} --section-list`
- Always show directive names even if only one directive is provided:
`pacini --verbose {{directive}}`
`pacini {{path/to/file}} --verbose`
- Display directives listed in a specific section:
`pacini --section {{section_name}}`
`pacini {{path/to/file}} --section {{section_name}}`
- Display help:

29
tldr/linux/systemctl-help Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl help
> Show the manual pages for one or more units, or for the unit a process belongs to (by PID).
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#help%20PATTERN%E2%80%A6%7CPID%E2%80%A6>.
- Show the manual page for a specific unit:
`systemctl help {{unit}}`
- Show the manual pages for multiple units:
`systemctl help {{unit1 unit2 ...}}`
- Show the manual page for a user unit:
`systemctl help {{unit}} --user`
- Show the manual page without a pager (all at once):
`systemctl help {{unit}} --no-pager`
- Show the manual page for the unit of a process by PID:
`systemctl help {{pid}}`

25
tldr/linux/systemctl-kill Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl kill
> Send a signal to one or more processes of a unit.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#kill%20PATTERN%E2%80%A6>.
- Send the `SIGTERM` signal to a unit to terminate it:
`systemctl kill {{unit}}`
- Send a specific signal to a unit:
`systemctl kill {{[-s|--signal]}} {{signal_number|signal_name}} {{unit}}`
- Send a `SIGHUP` signal to only the main process of a unit:
`systemctl kill {{[-s|--signal]}} SIGHUP --kill-whom main {{unit}}`
- List all available signals:
`systemctl kill {{[-s|--signal]}} help`

View File

@@ -18,7 +18,7 @@ source: https://github.com/tldr-pages/tldr.git
- Generate a public key from a private key:
`wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}`
`wg < {{path/to/private_key}} pubkey > {{path/to/public_key}}`
- Generate a public and private key: