LZIP(1)

๐Ÿ“ฆ
version 1.26 ยท 4 versions
, in alpine 3.24, arch rolling, fedora 43, fedora 44, nixpkgs unstable

๐Ÿ’– LZIP(1) โ€” like, the manual page for lzip ๐Ÿ’–

okay bestie, gather round, because we're about to talk about the user commands section of the manual and honestly? it's giving icon status. this is the lzip page, and she's here to make your files smol. โœจ


๐ŸŒธ NAME ๐ŸŒธ

lzip โ€” reduces the size of files. that's it. that's the whole job. she shrinks things. slay. ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

lzip [options] [files]

like... that's the whole vibe. options, then files. periodt.


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so Lzip is a lossless data compressor โ€” lossless meaning nothing gets lost, everything comes back exactly how it was, no cap โ€” and her user interface is lowkey similar to the one of gzip or bzip2. iykyk.

Lzip uses a simplified form of LZMA (Lempel-Ziv-Markov chain-Algorithm) and she's literally designed to achieve complete interoperability between implementations. the maximum dictionary size is 512 MiB so that any lzip file can be decompressed on 32-bit machines. thoughtful queen behavior fr fr. ๐Ÿ‘‘

Lzip provides accurate and robust 3-factor integrity checking. and like, the speed tea: lzip -0 compresses about as fast as gzip, while lzip -9 compresses most files more than bzip2. decompression speed is intermediate between gzip and bzip2. Lzip provides better data recovery capabilities than gzip and bzip2. main character energy honestly. ๐Ÿ’…

Lzip has been designed, written, and tested with great care to replace gzip and bzip2 as general-purpose compressed format for Unix-like systems. not me being dramatic, that's literally what the page says. iconic.


โœจ OPTIONS โœจ

  • -h โ€” display usage help and exit. short and sweet bestie ๐Ÿซถ
  • --help โ€” display full help and exit. the extended cut, the director's version ๐Ÿ’–
  • -V, --version โ€” output version information and exit. tell me who you are queen ๐Ÿ‘‘
  • -a, --trailing-error โ€” exit with error status if trailing data. she's watching. ๐Ÿ‘€
  • -b, --member-size=<bytes> โ€” set member size limit of multimember files
  • -c, --stdout โ€” write to standard output, keep input files
  • -d, --decompress โ€” decompress, test compressed file integrity
  • -f, --force โ€” overwrite existing output files. rude but necessary ๐Ÿ’€
  • -F, --recompress โ€” force re-compression of compressed files. again?? okay diva โœจ
  • -k, --keep โ€” keep (don't delete) input files. don't be a monster ๐Ÿ™ˆ
  • -l, --list โ€” print (un)compressed file sizes. receipts, basically ๐Ÿงพ
  • -m, --match-length=<bytes> โ€” set match length limit in bytes [36]
  • -o, --output=<file> โ€” write to <file>, keep input files
  • -q, --quiet โ€” suppress all messages. shhh, she's in her silent era ๐Ÿคซ
  • -s, --dictionary-size=<bytes> โ€” set dictionary size limit in bytes [8 MiB]
  • -S, --volume-size=<bytes> โ€” set volume size limit in bytes
  • -t, --test โ€” test compressed file integrity
  • -v, --verbose โ€” be verbose (a 2nd -v gives more). the way she just keeps talking ๐Ÿ’ฌ
  • -0 .. -9 โ€” set compression level [default 6]
  • --loose-trailing โ€” allow trailing data seeming corrupt header

Lzip replaces each named file with a (de)compressed version. if no file names are given, or if a file is '-', lzip compresses or decompresses from standard input to standard output. classic.

numbers may contain underscore separators between groups of digits and may be followed by a SI or binary multiplier: 1_234_567kB, 4KiB. and like, dictionary sizes 12 to 29 are interpreted as powers of two, meaning 2^12 to 2^29 bytes. math girlies rise ๐Ÿงš


the bidimensional parameter space of LZMA can't be mapped to a linear scale optimal for all files. ngl that's just how she is. if your files are large, very repetitive, etc, you may need to use the options --dictionary-size and --match-length directly to achieve optimal performance. manual tuning era ๐ŸŽ›๏ธ


to extract all the files from archive 'foo.tar.lz', use the commands:

tar -xf foo.tar.lz

or

lzip -cd foo.tar.lz | tar -xf -

both work, pick your fave bestie ๐Ÿ’–


the ideas embodied in lzip are due to (at least) the following people, and we're giving them their flowers ๐Ÿ’:

  • Abraham Lempel and Jacob Ziv โ€” for the LZ algorithm
  • Andrei Markov โ€” for the definition of Markov chains
  • G.N.N. Martin โ€” for the definition of range encoding
  • Igor Pavlov โ€” for putting all the above together in LZMA
  • Julian Seward โ€” for bzip2's CLI

legends, every single one. ๐Ÿ‘‘


๐Ÿ’€ EXIT STATUS ๐Ÿ’€

  • 0 โ€” for a normal exit. we love a happy ending ๐Ÿฅณ
  • 1 โ€” for environmental problems (file not found, invalid command-line options, I/O errors, etc). oop ๐Ÿ˜ญ
  • 2 โ€” to indicate a corrupt or invalid input file. she's broken bestie ๐Ÿ’”
  • 3 โ€” for an internal consistency error (e.g., bug) which caused lzip to panic. full meltdown. scream. it's giving internal crisis ๐Ÿšจ

๐Ÿ™ˆ REPORTING BUGS ๐Ÿ™ˆ

found a bug? don't just suffer in silence, tell someone:


Copyright ยฉ 2026 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later http://gnu.org/licenses/gpl.html

this is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. no safety net bestie, that's the deal ๐Ÿ’€

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

the full documentation for lzip is maintained as a Texinfo manual. if the info and lzip programs are properly installed at your site, the command

info lzip

should give you access to the complete manual. go read it, it's the extended lore ๐Ÿ“–โœจ


and that's the whole page, bestie ๐Ÿซถ this was lzip 1.26, dated March 2026, and she ate. go compress something. mwah ๐Ÿ’–๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from