---
name: "zck_gen_zdict"
section: "1"
platform: "linux"
package: "zchunk"
version: "1.5.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zck_gen_zdict"
---

# zck\_gen\_zdict(1)

extract a dictionary and optionally the separate chunks from a zdict file

## NAME

**zck\_gen\_zdict** – extract a dictionary and optionally the separate chunks from a zdict file

## SYNOPSIS

**zck\_gen\_zdict** \[**-d** *directory* \| **--dir**=*directory*\] \[**-v** \| **--verbose**\] *file*

**zck\_gen\_zdict** **-**? \| **--help** \| **--usage** \| **--version**

## 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**, **--dir**

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

- **-v**, **--verbose**

  Verbose operation; display some diagnostic output.

- **-**?, **--help**

  Display program usage information and exit.

- **--usage**

  Display brief program usage information and exit.

- **--version**

  Display program version information and exit.

## EXIT STATUS

The **zck\_gen\_zdict** utility exits 0 on success, and \>0 if an error occurs.

## 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

[unzck(1)](/unzck/1.md), [zck(1)](/zck/1.md), [zck\_delta\_size(1)](/zck_delta_size/1.md), [zck\_read\_header(1)](/zck_read_header/1.md), [zckdl(1)](/zckdl/1.md)

## 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⟩.
