Command line zip everything within a directory, but do not include any directory as the root

It was Archive Utility’s fault (a Mac OS X unzipper app). When I used the unzip command from the command line, it works great.

(cd MyFolder && zip -r -X "../MyFolder.zip" .)

Leave a Comment