mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 00:35:33 +02:00
losetup: add page (#1415)
This commit is contained in:
parent
58826bfdab
commit
18b2c95646
1 changed files with 19 additions and 0 deletions
19
pages/linux/losetup.md
Normal file
19
pages/linux/losetup.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# losetup
|
||||
|
||||
> Set up and control loop devices.
|
||||
|
||||
- List loop devices with detailed info:
|
||||
|
||||
`losetup -a`
|
||||
|
||||
- Attach a file to a given loop device:
|
||||
|
||||
`sudo losetup /dev/{{loop}} /{{path/to/file}}`
|
||||
|
||||
- Detach all loop devices:
|
||||
|
||||
`sudo losetup -D`
|
||||
|
||||
- Detach a given loop device:
|
||||
|
||||
`sudo losetup -d /dev/{{loop}}`
|
Loading…
Add table
Reference in a new issue