Skip to content

Instantly share code, notes, and snippets.

@Webklex
Created August 12, 2014 07:19
Show Gist options
  • Save Webklex/45c3b04cceedc7d808fc to your computer and use it in GitHub Desktop.
Save Webklex/45c3b04cceedc7d808fc to your computer and use it in GitHub Desktop.
Zip a folder in Linux
#To zip a folder
zip -9 -r <zip file> <folder name>
#To zip a single file:
zip -9 <zip file> <filename>
#Use "-9" for best compression. The compressed file works fine with Windows XP compression tool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment