hdiutil工具

本文详细介绍了如何使用hdiutil工具进行dmg文件的创建,包括创建单个、多个以及加密的dmg文件,并提供了取消dmg文件密码的方法,包括批量操作。通过示例命令和脚本,用户可以轻松掌握这些操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

hdiutil工具

目录

hdiutil工具

查看支持的命令

创建dmg文件

创建单个dmg文件

创建多个dmg文件

创建加密dmg文件(指定密码,特别适合同时创建多个dmg文件)

文件转换

取消dmg文件密码

批量取消dmg文件密码

使用mount命令与create命令去除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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值