Answers:
你的路径,通过它的外观,应该是
~/Downloads/或~/Desktop/不是
~/Users/Yourname/…
~/ 已经是 /Users/Yourname/
您还可以使用file命令来检查要转换的文件是否已经存在。复制路径并将其粘贴file到外壳之后。您还可以通过更改文件夹来缩短目录
cd ~/Downloads
mv file ~/Desktop
cd ~/Desktop
ls ubuntu*iso
hdiutil convert -o ubuntu.img -format UDRW ubuntu*iso
ls命令确保您的桌面上只有一个以ubuntu开头并以iso结尾的文件-如果您在桌面上有更多的ISO文件匹配,则可以放置整个文件路径,而不必使用为简洁起见使用的*。
~/已经是” 的快捷方式,/Volumes/Macintosh HD/Users/Yourname/因为在本参考~中,实际上$HOME在OS X下该值通常/Users/username不是/Volumes/Macintosh HD/Users/username。
                    bootdrive/users/me/
                    
mv例如通过更改文件扩展名。