mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-22 21:02:51 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user