How to zip files in mac without root folder

36,008

I managed to overcome this problem using below command

>cd myfolder
>zip -r name.zip .
Share:
36,008

Related videos on Youtube

lakshman
Author by

lakshman

Updated on September 18, 2022

Comments

  • lakshman
    lakshman over 1 year

    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?

  • GWed
    GWed over 2 years
    Theres a simpler solution that doesnt require cd'ing to the folder superuser.com/a/1670165/249155