LZMAINFO(1)

๐Ÿ“ฆ
version 5.8.4 ยท 2 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, freebsd 14.5, freebsd 15.1, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ NAME โœจ

okay bestie, this is the lzmainfo(1) page from XZ Utils ๐Ÿ’– and it's giving "peek inside your .lzma files" ๐Ÿ”

lzmainfo shows information stored in the .lzma file header ๐ŸŽ€

๐ŸŒธ SYNOPSIS ๐ŸŒธ

lzmainfo [--help] [--version] [file...]

๐Ÿ’… DESCRIPTION ๐Ÿ’…

okay so lzmainfo reads the header of an .lzma file and tells you what's inside, no decompressing needed โœจ it grabs the first 13 bytes from the file you name, decodes that header, and prints the result to standard output in a human readable format ๐Ÿงš if you don't give it any files, or the file is -, it reads standard input instead ๐Ÿซถ

the most iconic bits are the uncompressed size and the dictionary size ๐Ÿ‘‘ heads up though: the uncompressed size only shows up if the file is in the non-streamed .lzma format variant ๐Ÿ™ˆ

also, the memory needed to decompress the file is a few dozen kilobytes plus the dictionary size ๐Ÿฆ‹

lzmainfo is included in XZ Utils mostly for backward compatibility with LZMA Utils ๐Ÿ’œ it's giving "keeping the old crowd happy" energy ๐Ÿฅน

๐Ÿ“ EXIT STATUS ๐Ÿ“

  • 0 โ€” all is good, no cap โœจ
  • 1 โ€” an error happened ๐Ÿ’€

๐Ÿ˜ญ BUGS ๐Ÿ˜ญ

ngl this one is a little messy: lzmainfo uses MB while the correct suffix would be MiB (2^20 bytes) ๐Ÿ™ˆ it does this on purpose to keep the output compatible with LZMA Utils, so it's not a glitch, just a vibe we're keeping ๐Ÿ’–

๐Ÿ”— SEE ALSO ๐Ÿ”—

  • xz(1) โ€” the main XZ Utils page, go check it out ๐Ÿฆ‹

Tukaani, 2013-06-30, LZMAINFO(1) ๐ŸŒˆ that's all, bestie, you're literally ready to peek inside those headers now ๐Ÿ’…โœจ

๐Ÿ“ฆ where this page comes from