Create a Zip file in Mac without .DS_Store files

Mac and Windows both add hidden files when you're zipping a folder.

It's specially frustrating when you want to upload files to a linux server or send them to someone with a different operating system.

Luckily for us, Mac users, we can make use of the terminal to zip a folder excluding the .DS_Store files.

zip -r fileName.zip folderName -x "*.DS_Store"

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

Leave a Reply

Add <code> Some Code </code> by using this tags.

*
*