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:bt4four match finders, she ships withbt4-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 π
π 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 πβ¨π
π¦ where this page comes from
- debian bookworm: lzma-alone 9.22-2.2
- debian trixie: lzma-alone 24.08+dfsg-2 Β· lzma
- ubuntu jammy: lzma-alone 9.22-2.2
- ubuntu noble: lzma-alone 9.22-2.2
- ubuntu questing: lzma-alone 24.08+dfsg-2
- ubuntu resolute: lzma-alone 25.00+dfsg-1 Β· lzma
- ubuntu stonking: lzma-alone 25.00+dfsg-1 Β· lzma
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms