ZCK\_GEN\_ZDICT(1) General Commands Manual ZCK\_GEN\_ZDICT(1)

# [NAME](#NAME)

`zck_gen_zdict` — extract a dictionary and optionally the separate chunks from a zdict file

# [SYNOPSIS](#SYNOPSIS)

`zck_gen_zdict` \[`-d` `directory` | `--dir`=`directory`] \[`-v` | `--verbose`] `file`

`zck_gen_zdict` `-`? | `--help` | `--usage` | `--version`

# [DESCRIPTION](#DESCRIPTION)

The `zck_gen_zdict` utility reads the specified zchunk file, extracts the dictionary used during the compression, and optionally uncompresses the individual chunks into the specified directory.

The `zck_gen_zdict` utility accepts the following optional arguments:

[`-d`](#d), `--dir`

In addition to extracting the dictionary, uncompress the individual chunks as sequential files into the specified directory.

[`-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_gen_zdict` utility exits 0 on success, and &gt;0 if an error occurs.

# [EXAMPLES](#EXAMPLES)

Extract a zchunk file's dictionary into the words.txt.zdict file:

`zck_gen_zdict words.txt.zck`

Extract the dictionary into words.txt.zdict and also the chunks into the chunks/ directory:

`zck_gen_zdict -d chunks/ words.txt.zck`

# [SEE ALSO](#SEE_ALSO)

[unzck(1)](/man/enterprise-packages/zchunk/unzck.1), [zck(1)](/man/enterprise-packages/zchunk/zck.1), [zck\_delta\_size(1)](/man/enterprise-packages/zchunk/zck_delta_size.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_gen_zdict` 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_gen_zdict(1) from zchunk 1.5.5-r0 (Chainguard OS)
Source: https://github.com/zchunk/zchunk.git
