1. 只压缩单个文件
zip -e /Volumes/cryptoPath/crptoPath.zip /Volumes/cryptoPath/macBak.rtf
2. 压缩文件夹
zip -e -r /Volumes/cryptoPath/crptoPath.zip /Volumes/cryptoPath/
1. 只压缩单个文件
zip -e /Volumes/cryptoPath/crptoPath.zip /Volumes/cryptoPath/macBak.rtf
2. 压缩文件夹
zip -e -r /Volumes/cryptoPath/crptoPath.zip /Volumes/cryptoPath/
转载于:https://my.oschina.net/duojin/blog/1813181