7-zip

Compress encrypted via CLI

7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -mhe=on -p dir.7z *
  • -t7z: Use 7-zip format
  • -m0=lzma2: Use LZMA2 compression method
  • -mx=9: Use compression level 9 = ultra
  • -mfb=64: Number of fastbytes for LZMA
  • -md32m: Dictionary size of 32MB
  • -ms=on: Create a solid archive
  • mhe=on: Encrypt headers, too
  • -p: Promt for passwort to encrypt (you can ender the password directly after but it might be stored in the CLI's history)
  • dir.7z the name of the 7-zip file to create
  • *: Include all files in the current directory

This page was last edited on 2024-04-05 12:59

Powered by Wiki|Docs

This page was last edited on 2024-04-05 12:59

Bjørn Singer
Private wiki!

Powered by Wiki|Docs