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"
Code language: CSS (css)

About Ricard Torres

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

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> if you need to.

*
*