目标:使用mac命令行制作U盘系统
1)查看磁盘情况
$diskutil list #显示当前所有得磁盘情况
显示的内容:
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *15.5 GB disk2
1:
$diskutil unmountDisk /dev/disk1 #卸载U盘上的所有磁盘
2)安装pv命令
$brew install pv
$su root
$pv -petr /Users/*****/Downloads/kali-linux-2017-W25-i386.iso | dd of=/dev/disk2 bs=1m
显示的内容:
0:18:36 [2.45MiB/s] [================================================>] 100%
0+43828 records in
0+43828 records out
2872311808 bytes transferred in 1116.056859 secs (2573625 bytes/sec)