Skip to content

Instantly share code, notes, and snippets.

@yaci
Last active August 26, 2017 00:50
Show Gist options
  • Save yaci/a285e5dcacadb853de59fdec5a8c99f2 to your computer and use it in GitHub Desktop.
Save yaci/a285e5dcacadb853de59fdec5a8c99f2 to your computer and use it in GitHub Desktop.
Maximum compression using 7z on linux
7za a -t7z -m0=lzma2 -mx=9 -mfb=273 -md=256m -ms=on archiveName.7z inputFilesOrDir
# -md - dictionary size (256m dictionary requires 5gb+ RAM)
# -ms=on - solid archive
# to install 7z on ubuntu: apt-get install p7zip-full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment