Skip to content

Instantly share code, notes, and snippets.

@shahdhiren
Created February 2, 2014 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahdhiren/8768059 to your computer and use it in GitHub Desktop.
Save shahdhiren/8768059 to your computer and use it in GitHub Desktop.
ZIP Cross Platform
#################### ZIP Cross Platform ######################
#Link : http://www.coolestguyplanettech.com/how-to-compress-and-uncompress-files-and-folders-in-os-x-lion-10-7-using-terminal/
#First up is ZIP one of the most commonly used compression techniques used across all platforms
#To compress
zip -r archive_name.zip <folder_to_compress>
#To extract
unzip archive_name.zip
#If you want to make a zip without those invisible Mac resource files such as “_MACOSX” or “._Filename” and .ds store files, use the “-X” option in the command so:
zip -r -X archive_name.zip <folder_to_compress>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment