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
| Name | Type | Description |
|---|---|---|
| -q | option | quiet |
| -c | option | stdout |
| -d | option | decode |
| -t | option | test |
| FILE | operand | input |
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