如何在没有根文件夹的Mac中压缩文件


21

我用这个命令

>zip -r name.zip myfolder

压缩文件夹中的文件。我想将所有文件压缩为zip文件,myfolder而不包括myfolder在zip文件中。我怎么做?

Answers:


25

我设法使用以下命令克服了这个问题

>cd myfolder
>zip -r name.zip .
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.