Skip to content

Instantly share code, notes, and snippets.

@saifulapm
Created September 20, 2018 23:22
Show Gist options
  • Select an option

  • Save saifulapm/ea33ee54f6ee6b756b005bbc96aaa00f to your computer and use it in GitHub Desktop.

Select an option

Save saifulapm/ea33ee54f6ee6b756b005bbc96aaa00f to your computer and use it in GitHub Desktop.
Making Zip archive in arch linux

How to make zip archive on arch linux

Must Need be Installed zip.. sudo pacman -Syu zip

zip -9 -r <zip file> <folder name>

To zip a single file:

zip -9 <zip file> <filename>

Thanks

@LambdaLaboratories

Copy link
Copy Markdown

what does -9 do in this context?

@saifulapm

Copy link
Copy Markdown
Author

The -9 option in the zip command specifies the highest level of compression. ZIP compression levels range from -0 to -9, where:
• -0: No compression (only archives files).
• -1: Fastest compression, but results in a larger file size.
• -9: Slowest compression, but results in the smallest file size.

So, when you use zip -9, you’re telling the program to prioritize achieving the smallest possible archive size, even if it takes more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment