When I compress a folder or file by right click menu of Mac OS X, the archived file contains .DS_Store and __MACOSX folders. Because I share the archived file online for download, Windows users mistakenly trying to search the file in __MACOSX folder.
I need to have a cleaner archive option. I do not want to include .DS_Store and __MACOSX folder, but only the file or folder into the archive file.
All I found is CleanArchiver but it is GUI application. It really takes time and I have lots of files to compress. I am looking for a solution by context menu if possible.
Is there any solution that you can recommend for clean compressing?
Best Answer
You can use zip command in Terminal to zip the files without the
.DS_Store
,__MACOSX
and other.*
files.cd
commandExample
Let's say you have a folder on your desktop called
Folder
with stuff to zip.Open terminal and write following commands:
Now you have a file called
dir.zip
without__MACOSX
and.*
files in the folderFolder
on your desktop.