Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/systemd-dissect Normal file
View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemd-dissect
> Introspect and interact with file system OS disk images, specifically Discoverable Disk Images (DDIs).
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemd-dissect.html>.
- Show general image information about the OS image:
`systemd-dissect {{path/to/image.raw}}`
- Mount an OS image:
`systemd-dissect --mount {{path/to/image.raw}} {{/mnt/image}}`
- Unmount an OS image:
`systemd-dissect --umount {{/mnt/image}}`
- List files in an image:
`systemd-dissect --list {{path/to/image.raw}}`
- Attach an OS image to an automatically allocated loopback block device and print its path:
`systemd-dissect --attach {{path/to/image.raw}}`
- Detach an OS image from a loopback block device:
`systemd-dissect --detach {{path/to/device}}`