2015-01-24 00:58:16 +00:00
|
|
|
\"
|
|
|
|
\" zstd.1: This is a manual page for 'zstd' program. This file is part of the
|
2015-08-26 10:04:58 +00:00
|
|
|
\" zstd <http://www.zstd.net/> project.
|
|
|
|
\" Author: Yann Collet
|
2015-01-24 00:58:16 +00:00
|
|
|
\"
|
|
|
|
|
|
|
|
\" No hyphenation
|
|
|
|
.hy 0
|
|
|
|
.nr HY 0
|
|
|
|
|
2015-08-26 10:04:58 +00:00
|
|
|
.TH zstd "1" "2015-08-22" "zstd" "User Commands"
|
2015-01-24 00:58:16 +00:00
|
|
|
.SH NAME
|
2015-08-26 10:04:58 +00:00
|
|
|
\fBzstd, unzstd, zstdcat\fR - Compress or decompress .zst files
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.TP 5
|
2016-02-16 13:42:08 +00:00
|
|
|
\fBzstd\fR [\fBOPTIONS\fR] [-|INPUT-FILE] [-o <OUTPUT-FILE>]
|
2015-08-26 10:04:58 +00:00
|
|
|
.PP
|
|
|
|
.B unzstd
|
|
|
|
is equivalent to
|
|
|
|
.BR "zstd \-d"
|
|
|
|
.br
|
|
|
|
.B zstdcat
|
|
|
|
is equivalent to
|
|
|
|
.BR "zstd \-dc"
|
|
|
|
.br
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
2015-08-26 10:04:58 +00:00
|
|
|
\fBzstd\fR is a fast lossless compression algorithm.
|
2016-02-16 13:42:08 +00:00
|
|
|
It is based on the \fBLZ77\fR family, with further FSE & huff0 entropy stages.
|
|
|
|
\fBzstd\fR offers configurable compression speed, with fast modes at > 200 MB/s per core.
|
|
|
|
It also features a very fast decoder, with speed > 500 MB/s per core.
|
2015-12-17 19:30:14 +00:00
|
|
|
|
|
|
|
\fBzstd\fR command line is generally similar to gzip, but features the following differences :
|
|
|
|
- Original files are preserved
|
2016-02-16 13:42:08 +00:00
|
|
|
- By default, when compressing a single file, \fBzstd\fR displays progress notifications and result summary.
|
2015-12-17 19:30:14 +00:00
|
|
|
Use \fB-q\fR to turn them off
|
|
|
|
|
|
|
|
|
2015-01-24 00:58:16 +00:00
|
|
|
\fBzstd\fR supports the following options :
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2015-12-17 19:30:14 +00:00
|
|
|
.B \-#
|
2016-02-16 13:42:08 +00:00
|
|
|
# compression level [1-21] (default:1)
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.BR \-d ", " --decompress
|
2015-01-24 00:58:16 +00:00
|
|
|
decompression
|
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.B \-D file
|
|
|
|
use `file` as Dictionary to compress or decompress FILE(s)
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.B \-o file
|
|
|
|
save result into `file` (only possible with a single input FILE)
|
2015-12-17 19:30:14 +00:00
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.BR \-f ", " --force
|
|
|
|
overwrite output without prompting
|
2015-12-17 19:30:14 +00:00
|
|
|
.TP
|
2015-08-26 10:04:58 +00:00
|
|
|
.BR \-h/\-H ", " --help
|
2015-01-24 00:58:16 +00:00
|
|
|
display help/long help and exit
|
|
|
|
.TP
|
2015-08-26 10:04:58 +00:00
|
|
|
.BR \-V ", " --version
|
2015-01-24 00:58:16 +00:00
|
|
|
display Version number and exit
|
|
|
|
.TP
|
2015-08-26 10:04:58 +00:00
|
|
|
.BR \-v ", " --verbose
|
2015-01-24 00:58:16 +00:00
|
|
|
verbose mode
|
|
|
|
.TP
|
2015-12-17 19:30:14 +00:00
|
|
|
.BR \-q ", " --quiet
|
|
|
|
suppress warnings and notifications; specify twice to suppress errors too
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.BR \-c ", " --stdout
|
2015-01-24 00:58:16 +00:00
|
|
|
force write to standard output, even if it is the console
|
2016-02-16 13:42:08 +00:00
|
|
|
|
|
|
|
.SH DICTIONARY
|
|
|
|
.PP
|
|
|
|
\fBzstd\fR offers \fIdictionary\fR compression, useful for very small files and messages.
|
|
|
|
It's possible to train \fBzstd\fR with some samples, the result of which is saved into a file called `dictionary`.
|
|
|
|
Then during compression and decompression, make reference to the same dictionary.
|
|
|
|
It will improve compression ratio of small files.
|
|
|
|
Typical gains range from ~10% (at 64KB) to x5 better (at <1KB).
|
|
|
|
.TP
|
|
|
|
.B \--train FILEs
|
|
|
|
use FILEs as training set to create a dictionary.
|
|
|
|
The training set should contain a lot of small files (> 100).
|
|
|
|
and weight typically 100x the target dictionary size
|
|
|
|
(for example, 10 MB for a 100 KB dictionary)
|
|
|
|
.TP
|
|
|
|
.B \-o file
|
|
|
|
dictionary saved into `file` (default: dictionary)
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
2016-02-16 13:42:08 +00:00
|
|
|
.B \--maxdict #
|
|
|
|
limit dictionary to specified size (default : 112640)
|
|
|
|
.TP
|
|
|
|
.B \-s#
|
|
|
|
dictionary selectivity level (default: 9)
|
|
|
|
the smaller the value, the denser the dictionary, improving its efficiency but reducing its possible maximum size.
|
|
|
|
|
|
|
|
.SH BENCHMARK
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
2015-12-17 19:30:14 +00:00
|
|
|
.B \-b#
|
|
|
|
benchmark file(s) using compression level #
|
2015-01-24 00:58:16 +00:00
|
|
|
.TP
|
|
|
|
.B \-i#
|
|
|
|
iteration loops [1-9](default : 3), benchmark mode only
|
2016-02-16 13:42:08 +00:00
|
|
|
.TP
|
|
|
|
.B \-B#
|
|
|
|
cut file into independent blocks of size # (default: no block)
|
|
|
|
.TP
|
|
|
|
.B \-r#
|
|
|
|
test all compression levels from 1 to # (default: disabled)
|
|
|
|
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
.SH BUGS
|
2015-08-26 10:04:58 +00:00
|
|
|
Report bugs at:- https://github.com/Cyan4973/zstd/issues
|
2015-01-24 00:58:16 +00:00
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
Yann Collet
|