LZMAINFO(1) XZ Utils LZMAINFO(1)

# [NAME](#NAME)

lzmainfo - show information stored in the .lzma file header

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

**lzmainfo** shows information stored in the **.lzma** file header. It reads the first 13 bytes from the specified *file*, decodes the header, and prints it to standard output in human readable format. If no *files* are given or *file* is **-**, standard input is read.

Usually the most interesting information is the uncompressed size and the dictionary size. Uncompressed size can be shown only if the file is in the non-streamed **.lzma** format variant. The amount of memory required to decompress the file is a few dozen kilobytes plus the dictionary size.

**lzmainfo** is included in XZ Utils primarily for backward compatibility with LZMA Utils.

# [EXIT STATUS](#EXIT_STATUS)

**0**

All is good.

**1**

An error occurred.

# [BUGS](#BUGS)

**lzmainfo** uses **MB** while the correct suffix would be **MiB** (2^20 bytes). This is to keep the output compatible with LZMA Utils.

# [SEE ALSO](#SEE_ALSO)

[**xz**(1)](/man/os/xz/xz.1)

2013-06-30 Tukaani

---

Document: lzmainfo(1) from xz 5.8.4-r0 (Chainguard OS)
Source: https://github.com/tukaani-project/xz
