> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/man/man1/lzmainfo.1.md).

# lzmainfo.1

`lzmainfo` — 显示 .lzma 文件头中存储的信息

## 名称

`lzmainfo`

## 概要

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

## 描述

`lzmainfo` 显示 `.lzma` 文件头中存储的信息。它从指定 `file` 读取前 13 个字节，解码头，并以人类可读格式打印到标准输出。如果未给定 `files` 或 `file` 为 `-`，则读取标准输入。

通常最有趣的信息是未压缩大小和字典大小。仅当文件为非流式 `.lzma` 格式变体时才能显示未压缩大小。解压缩文件所需的内存量为几十 KB 加上字典大小。

`lzmainfo` 包含在 XZ Utils 中主要是为了向后兼容 LZMA Utils。

## 退出状态

**0** 一切正常。 **1** 发生错误。

## 缺陷

`lzmainfo` 使用 `MB`，而正确的后缀应为 `MiB`（2^20 字节）。这是为了保持输出与 LZMA Utils 兼容。

## 参见

xz(1)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/man/man1/lzmainfo.1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
