commands

zstd — compress Zstandard streams

Compresses or decodes Zstandard streams. -q reduces informational output, -c writes stdout, -d decodes and -t tests integrity. Resource use depends on settings. Example assumes a fresh archive lab fixture with new output names.

Formal Syntax & Structure

linux syntaxlinux
zstd [-q] [-c|-d|-t] [FILE...]

Parameters & Attributes

NameTypeDescription
-qoptionquiet
-coptionstdout
-doptiondecode
-toptiontest
FILEoperandinput

Return Value

exit status and output

Compresses or decodes Zstandard streams. -q reduces informational output, -c writes stdout, -d decodes and -t tests integrity. Resource use depends on settings.

Working Example

Example Snippetlinux
zstd -q -c notes.txt > notes.zstzstd -q -t notes.zst && zstd -q -dc notes.zst
Linux Reference