mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-01 20:42:39 +00:00
26 lines
515 B
Plaintext
26 lines
515 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, osx]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# hdiutil
|
|
|
|
> Utility to create and manage disk images.
|
|
> More information: <https://keith.github.io/xcode-man-pages/hdiutil.1.html>.
|
|
|
|
- Mount an image:
|
|
|
|
`hdiutil attach {{path/to/image_file}}`
|
|
|
|
- Unmount an image:
|
|
|
|
`hdiutil detach /Volumes/{{volume_file}}`
|
|
|
|
- List mounted images:
|
|
|
|
`hdiutil info`
|
|
|
|
- Create an ISO image from the contents of a directory:
|
|
|
|
`hdiutil makehybrid -o {{path/to/output_file}} {{path/to/directory}}`
|