LZMA(1)

πŸ’– LZMA(1) β€” the manual, but make it cute πŸ’–

okay bestie, sit down, we're learning lzma and honestly? it's giving legend behaviour. This is the General Commands Manual page for it, and I'm about to make it make sense. πŸŽ€


🌸 NAME 🌸

LZMA β€” a compression algorithm, based on Lempel Ziv's compression method. that's the whole name section, she's short but she's iconic.


✨ SYNOPSIS ✨

lzma <e|d> inputFile outputFile [switches...]

yes, you give her a letter, an inputFile, an outputFile, and then whatever switches your heart desires.


πŸ¦‹ DESCRIPTION πŸ¦‹

LZMA provides high compression ratio and very fast decompression, so it is very suitable for embedded applications. like, the ratio is high and the decompression is fast, that's the whole flex. For example, it can be used for ROM (firmware) compression. πŸ’Ύβœ¨

lzma is the default and general compression method of 7z format in 7-Zip program. so if you've ever wondered who's doing the heavy lifting behind 7z, it's her. main character energy fr.


🫢 FUNCTION LETTERS 🫢

pick your fighter, you literally have to pick one:

  • e β€” Encode file (squish it down, make it smol)
  • d β€” Decode file (un-squish it, get your data back)
  • b β€” Benchmark (vibe check your machine's speed, no file gets squished)

πŸ’… SWITCHES πŸ’…

here's where the tuning happens. every single one, no skipping, I promised. 🫑

  • -a{N} β€” Set compression mode β€” [0, 1], default: 1 (max) lowkey the max setting, she's not playing around
  • -d{N} β€” Set dictionary β€” [0,30], default: 23 (8MB) bigger dictionary, bigger memory footprint, you know the drill
  • -fb{N} β€” Set number of fast bytes β€” [5, 273], default: 128
  • -mc{N} β€” Set number of cycles for match finder
  • -lc{N} β€” Set number of literal context bits β€” [0, 8], default: 3
  • -lp{N} β€” Set number of literal pos bits β€” [0, 4], default: 0
  • -pb{N} β€” Set number of pos bits β€” [0, 4], default: 2
  • -mf{MF_ID} β€” Set Match Finder: [bt2, bt3, bt4, hc4], default: bt4 four match finders, she ships with bt4
  • -eos β€” Write End Of Stream marker a lil "that's a wrap" flag for your stream 🌈
  • -si β€” Read data from stdin
  • -so β€” Write data to stdout pipe girlies, this one's for you
heads up bestie: those {N} and {MF_ID} bits are placeholders β€” swap in your actual number or match-finder id. and the ranges listed above are the ranges, don't go outside them and then act surprised. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

7z(1), 7za(1)


πŸ’œ AUTHOR πŸ’œ

Written for Debian by Mohammed Adnene Trojette. shoutout to the author, absolute icon, we stan. 🫢


and that's the page!! this one came from the General Commands Manual, dated May 5 2006, authored by Mohammed Adnene Trojette, and it's filed under LZMA(1) β€” go forth and compress, bestie, you got this fr fr πŸ’–βœ¨πŸŽ€