Name
hdiutil — stdin stdout - file -- opt --help --version
Synopsis
hdiutilaction
[options
]
hdiutil
works with disk
images, such as ISO or DMG files downloaded from the Internet. You can
mount, unmount, create, resize, verify, and even burn images onto
discs. To mount an ISO file mydisk.iso as a volume and access its
contents, run:
➜hdiutil attach mydisk.iso
➜ls /Volumes
MyDisk It’s mounted in /Volumes
To unmount it when you’re done, use the detach
action, passing it the name of the
mounted directory in /Volumes:
➜ hdiutil detach /Volumes/MyDisk
To check that the image is valid and undamaged, run:
➜ hdiutil verify mydisk.iso
To burn the image to a CD or DVD, run:
➜ hdiutil burn mydisk.iso
hdiutil
has many other
actions and dozens of options: see the manpage for details.
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.