ZCK(1) General Commands Manual ZCK(1)

# [NAME](#NAME)

`zck` — compress a file using the zchunk format

# [SYNOPSIS](#SYNOPSIS)

`zck` \[`-D` `file` | `--dict`=`file`] \[`-m` `chunk` | `--manual`=`chunk`] \[`-o` `file` | `--output`=`file`] \[`-s` `string` | `--split`=`string`] \[`-v` | `--verbose`] `file`

`zck` `-`? | `--help` | `--usage` | `--version`

# [DESCRIPTION](#DESCRIPTION)

The `zck` utility creates a new zchunk file from the data in the specified input file.

[*NOTE:*](#NOTE:) If no output file is specified using the `-o` option, the `zck` utility will place the new file with the .zck extension in the [*current*](#current) working directory, not in the directory where the original file resides.

The `zck` utility accepts the following optional arguments:

[`-D`](#D), `--dict`

Set the zstd compression dictionary to the specified file.

[`-m`](#m), `--manual`

Do not do any automatic chunking (implies `-s`).

[`-o`](#o), `--output`

Output to the specified file.

[`-s`](#s), `--split`

Split chunks at the beginning of the specified string.

[`-v`](#v), `--verbose`

Verbose operation; display some diagnostic output.

`-`?, `--help`

Display program usage information and exit.

[`--usage`](#usage)

Display brief program usage information and exit.

[`--version`](#version)

Display program version information and exit.

# [EXIT STATUS](#EXIT_STATUS)

The `zck` utility exits 0 on success, and &gt;0 if an error occurs.

# [EXAMPLES](#EXAMPLES)

Create (in the current directory) a zchunk-compressed words.zck file from a dictionary:

`zck /usr/share/dict/words`

The same, but specify an output file:

`zck -o /tmp/words.txt.zck /usr/share/dict/words`

Generate a zchunk file with chunks separated on HTML sections:

`zck -s '<h2>' doc.html`

# [SEE ALSO](#SEE_ALSO)

[unzck(1)](/man/enterprise-packages/zchunk/unzck.1), [zck\_delta\_size(1)](/man/enterprise-packages/zchunk/zck_delta_size.1), [zck\_gen\_zdict(1)](/man/enterprise-packages/zchunk/zck_gen_zdict.1), [zck\_read\_header(1)](/man/enterprise-packages/zchunk/zck_read_header.1), [zckdl(1)](/man/enterprise-packages/zchunk/zckdl.1)

# [AUTHOR](#AUTHOR)

The `zck` utility was written by Jonathan Dieter ⟨jdieter@gmail.com⟩. This manual page stub was written by Peter Pentchev ⟨roam@ringlet.net⟩.

May 31, 2020 Linux 4.19.0-gvisor

---

Document: zck(1) from zchunk 1.5.4-r4 (Chainguard OS)
Source: https://github.com/zchunk/zchunk.git
