Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此脚本输出稀疏磁盘映像。我想将图像放在系统上的正确位置,但不知道如何给它一个位置。我不想在创建后移动它。
#!/bin/bash hostname=`hostname -s` mac=`ifconfig en0 | grep ether | tr -d ":" | awk {'print $2'}` hdiutil create -size 300g -type SPARSE -fs HFS+ "$hostname"_"$mac"
/Volume/location/"$hostname"_"$mac"
工作过