2025-02-24 06:00:06 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
|
2025-02-24 06:02:43 +01:00
|
|
|
.TH ZTEST "1" "January 2023" "zutils 1.12" "User Commands"
|
2025-02-24 04:58:43 +01:00
|
|
|
.SH NAME
|
2025-02-24 05:54:41 +01:00
|
|
|
ztest \- verify the integrity of compressed files
|
2025-02-24 04:58:43 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ztest
|
2025-02-24 05:49:37 +01:00
|
|
|
[\fI\,options\/\fR] [\fI\,files\/\fR]
|
2025-02-24 04:58:43 +01:00
|
|
|
.SH DESCRIPTION
|
2025-02-24 06:02:28 +01:00
|
|
|
ztest verifies the integrity of the compressed files specified. It
|
|
|
|
also warns if an uncompressed file has a compressed file name extension, or
|
|
|
|
if a compressed file has a wrong compressed extension. Uncompressed files
|
|
|
|
are otherwise ignored. If a file is specified as '\-', the integrity of
|
|
|
|
compressed data read from standard input is verified. Data read from
|
|
|
|
standard input must be all in the same compressed format. If a file fails to
|
|
|
|
decompress, does not exist, can't be opened, or is a terminal, ztest
|
|
|
|
continues verifying the rest of the files. A final diagnostic is shown at
|
|
|
|
verbosity level 1 or higher if any file fails the test when testing multiple
|
|
|
|
files.
|
2025-02-24 04:58:43 +01:00
|
|
|
.PP
|
2025-02-24 05:58:06 +01:00
|
|
|
If no files are specified, recursive searches examine the current
|
|
|
|
working directory, and nonrecursive searches read standard input.
|
|
|
|
.PP
|
2025-02-24 06:00:56 +01:00
|
|
|
The formats supported are bzip2, gzip, lzip, xz, and zstd.
|
2025-02-24 05:40:46 +01:00
|
|
|
.PP
|
2025-02-24 05:54:41 +01:00
|
|
|
Note that error detection in the xz format is broken. First, some xz
|
|
|
|
files lack integrity information. Second, not all xz decompressors can
|
|
|
|
verify the integrity of all xz files. Third, section 2.1.1.2 'Stream
|
|
|
|
Flags' of the xz format specification allows xz decompressors to produce
|
|
|
|
garbage output without issuing any warning. Therefore, xz files can't
|
|
|
|
always be verified as reliably as files in the other formats can.
|
2025-02-24 05:40:46 +01:00
|
|
|
.PP
|
|
|
|
Exit status is 0 if all compressed files verify OK, 1 if environmental
|
2025-02-24 06:02:28 +01:00
|
|
|
problems (file not found, invalid command line options, I/O errors, etc),
|
|
|
|
2 if any compressed file is corrupt or invalid, or if any file has an
|
|
|
|
incorrect file name extension.
|
2025-02-24 04:58:43 +01:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
display this help and exit
|
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
output version information and exit
|
|
|
|
.TP
|
2025-02-24 05:51:15 +01:00
|
|
|
\fB\-M\fR, \fB\-\-format=\fR<list>
|
2025-02-24 05:52:30 +01:00
|
|
|
process only the formats in <list>
|
2025-02-24 05:40:46 +01:00
|
|
|
.TP
|
2025-02-24 05:43:06 +01:00
|
|
|
\fB\-N\fR, \fB\-\-no\-rcfile\fR
|
|
|
|
don't read runtime configuration file
|
|
|
|
.TP
|
2025-02-24 05:51:15 +01:00
|
|
|
\fB\-O\fR, \fB\-\-force\-format=\fR<fmt>
|
2025-02-24 06:02:28 +01:00
|
|
|
force the input format
|
2025-02-24 05:51:15 +01:00
|
|
|
.TP
|
2025-02-24 04:58:43 +01:00
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
suppress all messages
|
|
|
|
.TP
|
|
|
|
\fB\-r\fR, \fB\-\-recursive\fR
|
|
|
|
operate recursively on directories
|
|
|
|
.TP
|
2025-02-24 05:58:06 +01:00
|
|
|
\fB\-R\fR, \fB\-\-dereference\-recursive\fR
|
|
|
|
recursively follow symbolic links
|
|
|
|
.TP
|
2025-02-24 04:58:43 +01:00
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
be verbose (a 2nd \fB\-v\fR gives more)
|
2025-02-24 05:43:06 +01:00
|
|
|
.TP
|
|
|
|
\fB\-\-bz2=\fR<command>
|
|
|
|
set compressor and options for bzip2 format
|
|
|
|
.TP
|
|
|
|
\fB\-\-gz=\fR<command>
|
|
|
|
set compressor and options for gzip format
|
|
|
|
.TP
|
|
|
|
\fB\-\-lz=\fR<command>
|
|
|
|
set compressor and options for lzip format
|
|
|
|
.TP
|
|
|
|
\fB\-\-xz=\fR<command>
|
|
|
|
set compressor and options for xz format
|
2025-02-24 06:00:56 +01:00
|
|
|
.TP
|
|
|
|
\fB\-\-zst=\fR<command>
|
|
|
|
set compressor and options for zstd format
|
2025-02-24 06:02:28 +01:00
|
|
|
.PP
|
|
|
|
Valid formats for options '\-M' and '\-O' are 'bz2', 'gz', 'lz', 'xz', and 'zst'.
|
2025-02-24 04:58:43 +01:00
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Report bugs to zutils\-bug@nongnu.org
|
2025-02-24 05:04:07 +01:00
|
|
|
.br
|
2025-02-24 04:58:43 +01:00
|
|
|
Zutils home page: http://www.nongnu.org/zutils/zutils.html
|
|
|
|
.SH COPYRIGHT
|
2025-02-24 06:02:43 +01:00
|
|
|
Copyright \(co 2023 Antonio Diaz Diaz.
|
2025-02-24 05:48:02 +01:00
|
|
|
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
|
2025-02-24 05:04:07 +01:00
|
|
|
.br
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
|
|
There is NO WARRANTY, to the extent permitted by law.
|
2025-02-24 06:00:56 +01:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
The full documentation for
|
|
|
|
.B ztest
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
|
|
.B info
|
|
|
|
and
|
|
|
|
.B ztest
|
|
|
|
programs are properly installed at your site, the command
|
|
|
|
.IP
|
|
|
|
.B info zutils
|
|
|
|
.PP
|
|
|
|
should give you access to the complete manual.
|