ZTEST(1) | User Commands | ZTEST(1) |
ztest - verify the integrity of compressed files
ztest [options] [files]
Ztest verifies the integrity of the specified compressed files. Uncompressed files are 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 compression format.
If no files are specified, recursive searches examine the current working directory, and nonrecursive searches read standard input.
The formats supported 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.
Report bugs to zutils-bug@nongnu.org
Zutils home page: http://www.nongnu.org/zutils/zutils.html
Copyright © 2019 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.
January 2019 | ztest (zutils) 1.8 |