> 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/znew.1.md).

# znew\.1

`znew` — 将压缩文件转换为 gzip 压缩文件

## 名称

`znew`

## 概要

`znew [-ftv9K] file`

## 描述

`znew` 工具解压由 compress(1) 压缩的文件，并使用 [gzip(1)](/man/man1/gzip.1.md) 重新压缩。

选项如下：

**`-f`** 覆盖已存在的 ".gz" 文件。除非指定此选项，否则 `znew` 拒绝覆盖已存在的文件。

**`-t`** 在删除原始文件之前测试 gzip 文件的完整性。如果完整性检查失败，则不删除原始 ".Z" 文件。

**`-v`** 打印报告，说明所达到的压缩率。

**`-9`** 使用 [gzip(1)](/man/man1/gzip.1.md) 的 -9 模式，以较慢的执行速度换取更好的压缩效果。

**`-K`** 如果原始 ".Z" 文件使用的磁盘块少于 gzip 压缩后的文件，则保留原始 ".Z" 文件。一个磁盘块为 1024 字节。

## 参见

[gzip(1)](/man/man1/gzip.1.md)

## 注意事项

`znew` 工具会尽量保持原始文件的文件模式。如果原始文件不可写，则无法做到这一点，`znew` 会打印警告。


---

# 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/znew.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.
