ztest - verify the integrity of compressed files
ztest [
options] [
files]
Ztest verifies the integrity of the specified compressed files. Uncompressed
files are ignored. If no files are specified, or 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 compression format.
The supported formats are bzip2, gzip, lzip and xz.
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.
Exit status is 0 if all compressed files verify OK, 1 if environmental problems
(file not found, invalid flags, I/O errors, etc), 2 if any compressed file is
corrupt or invalid.
- -h, --help
- display this help and exit
- -V, --version
- output version information and exit
- -M, --format=<list>
- process only the formats in <list>
- -N, --no-rcfile
- don't read runtime configuration file
- -O, --force-format=<fmt>
- force given format (bz2, gz, lz, xz)
- -q, --quiet
- suppress all messages
- -r, --recursive
- operate recursively on directories
- -v, --verbose
- be verbose (a 2nd -v gives more)
- --bz2=<command>
- set compressor and options for bzip2 format
- --gz=<command>
- set compressor and options for gzip format
- --lz=<command>
- set compressor and options for lzip format
- --xz=<command>
- set compressor and options for xz format
Report bugs to zutils-bug@nongnu.org
Zutils home page: http://www.nongnu.org/zutils/zutils.html
Copyright © 2018 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or
later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO
WARRANTY, to the extent permitted by law.