Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-13 00:44:09 +00:00
parent abc22a98ef
commit 37f3913313
33 changed files with 117 additions and 70 deletions

View File

@@ -20,7 +20,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo btrfs restore --path-regex {{regex}} -c {{path/to/btrfs_device}} {{path/to/target_directory}}`
- Restore files from a btrfs filesystem using a specific root tree `bytenr` (see `btrfs-find-root`):
- Restore files from a btrfs filesystem using a specific root [t]ree `bytenr` (see `btrfs-find-root`):
`sudo btrfs restore -t {{bytenr}} {{path/to/btrfs_device}} {{path/to/target_directory}}`

17
tldr/linux/caligula Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# caligula
> A user-friendly, lightweight TUI for disk imaging.
> More information: <https://github.com/ifd3f/caligula>.
- Flash an ISO to a drive:
`caligula burn {{path/to/image.iso}}`
- Flash an ISO to a drive without entering the hash interactively:
`caligula burn {{path/to/image.iso}} {{[s|--hash]}} {{hash}}`

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- List password information for the user:
`chage {{[-l|--list]]} {{username}}`
`chage {{[-l|--list]}} {{username}}`
- Enable password expiration in 10 days:

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- List partitions:
`sudo fdisk -l`
`sudo fdisk {{[-l|--list]}}`
- Start the partition manipulator:

View File

@@ -13,9 +13,9 @@ source: https://github.com/tldr-pages/tldr.git
`swww img {{path/to/image}}`
- Set wallpaper to specified [o]utputs:
- Set wallpaper to specified outputs:
`swww img -o {{output1,output2,...}} {{path/to/image}}`
`swww img {{[-o|--outputs]}} {{output1,output2,...}} {{path/to/image}}`
- Restore last wallpaper:

View File

@@ -14,7 +14,7 @@ source: https://github.com/tldr-pages/tldr.git
`sudo urpmi.removemedia {{medium}}`
- Remove all media:
- Remove [a]ll media:
`sudo urpmi.removemedia -a`

25
tldr/linux/znc Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# znc
> IRC bouncer.
> More information: <https://manned.org/znc>.
- Run the initial setup:
`znc {{[-c|--makeconf]}}`
- Start the IRC bouncer daemon:
`znc`
- Setup `znc` for systemd:
`sudo {{[-u|--user]}} znc znc {{[-c|--makeconf]}} {{[-d|--datadir]}} /var/lib/znc`
- Enable `znc` to start on boot and start it now:
`systemctl enable znc --now`