Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
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 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 '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)
set compressor and options for bzip2 format
set compressor and options for gzip format
set compressor and options for lzip format
set compressor and options for xz format

Report bugs to
Zutils home page:

Copyright © 2018 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later <>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
February 2018 ztest (zutils) 1.7

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.