Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-29 00:18:23 +00:00
parent a3692d638b
commit 75f807d6af
175 changed files with 1107 additions and 775 deletions

View File

@@ -10,7 +10,7 @@ source: https://github.com/tldr-pages/tldr.git
- List loop devices with detailed info:
`losetup -a`
`losetup {{[-a|--all]}}`
- Attach a file to a given loop device:
@@ -18,16 +18,16 @@ source: https://github.com/tldr-pages/tldr.git
- Attach a file to a new free loop device and scan the device for partitions:
`sudo losetup --show --partscan -f /{{path/to/file}}`
`sudo losetup --show {{[-P|--partscan]}} {{[-f|--find]}} /{{path/to/file}}`
- Attach a file to a read-only loop device:
`sudo losetup --read-only {{/dev/loop}} /{{path/to/file}}`
`sudo losetup {{[-r|--read-only]}} {{/dev/loop}} /{{path/to/file}}`
- Detach all loop devices:
`sudo losetup -D`
`sudo losetup {{[-D|--detach-all]}}`
- Detach a given loop device:
`sudo losetup -d {{/dev/loop}}`
`sudo losetup {{[-d|--detach]}} {{/dev/loop}}`