How to zip files in mac without root folder
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open
--
Chapters
00:00 How To Zip Files In Mac Without Root Folder
00:15 Accepted Answer Score 35
00:26 Answer 2 Score 2
00:36 Thank you
--
Full question
https://superuser.com/questions/850829/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#mac #terminal #zip
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Techno Bleepage Open
--
Chapters
00:00 How To Zip Files In Mac Without Root Folder
00:15 Accepted Answer Score 35
00:26 Answer 2 Score 2
00:36 Thank you
--
Full question
https://superuser.com/questions/850829/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#mac #terminal #zip
#avk47
ACCEPTED ANSWER
Score 35
I managed to overcome this problem using below command
>cd myfolder
>zip -r name.zip .
ANSWER 2
Score 2
zip -jr name.zip myfolder/*
The -j will junk the path. I'm adding this solution because it was the top link when googling for it.