How to zip files in mac without root folder

22

2

I used this command

>zip -r name.zip myfolder

to zip files in a folder. I want to zip all the files in myfolder without including myfolder in zip file. How do I do that?

lakshman

Posted 2014-12-10T12:16:40.957

Reputation: 709

Answers

26

I managed to overcome this problem using below command

>cd myfolder
>zip -r name.zip .

lakshman

Posted 2014-12-10T12:16:40.957

Reputation: 709