hdiutil工具
目录
创建加密dmg文件(指定密码,特别适合同时创建多个dmg文件)
查看支持的命令
命令:
hdiutil help
运行结果:
Usage: hdiutil <verb> <options>
<verb> is one of the following:
help flatten
attach imageinfo
detach isencrypted
eject makehybrid
verify mount
create mountvol
compact unmount
convert plugins
burn resize
info segment
checksum pmap
chpass udifderez
erasekeys udifrez
unflatten
help display more detailed help
Usage: hdiutil attach [options] <image>
hdiutil attach -help
Usage: hdiutil detach [options] <devname>
hdiutil detach -help
eject is a synonym for detach...
Usage: hdiutil detach [options] <devname>
hdiutil detach -help
Usage: hdiutil verify [options] <image>
hdiutil verify -help
Usage: hdiutil create <sizespec> [options] <imagepath>
hdiutil create -help
Usage: hdiutil compact [options] <image>
hdiutil compact -help
Usage: hdiutil convert -format <format> -o <outfile> [options] <image>
hdiutil convert -help
Usage: hdiutil burn [options] <image>
hdiutil burn -help
Usage: hdiutil info [options]
hdiutil info -help
Usage: hdiutil checksum -type <checksumType> [options] <image>
hdiutil checksum -help
Usage: hdiutil chpass [options] <image>
hdiutil chpass -help
Usage: hdiutil erasekeys <image>
hdiutil erasekeys -help
Usage: hdiutil unflatten [options] <image>
hdiutil unflatten -help
Usage: hdiutil flatten [options] <image>
hdiutil flatten -help
Usage: hdiutil imageinfo [options] <image>
hdiutil imageinfo -help
Usage: hdiutil isencrypted <image>
hdiutil isencrypted -help
Usage: hdiutil makehybrid -o <outfile> [options] <source>
hdiutil makehybrid -help
Usage: hdiutil attach [options] <image>
hdiutil attach -help
Usage: hdiutil mountvol [options] <devname>
hdiutil mountvol -help
Usage: hdiutil unmount [options] <mountpoint>
hdiutil unmount -help
Usage: hdiutil plugins [options]
hdiutil plugins -help
Usage: hdiutil resize <sizespec> [options] <image>
hdiutil resize -help
Usage: hdiutil segment -o <outfile> -segmentCount <num> [options] <image>
hdiutil segment -o <outfile> -segmentSize <size> [options] <image>
hdiutil segment -help
Usage: hd