ZTEST(1)
πΈ ZTEST(1) β the check-your-compressed-files girlies' manual πΈ
okay so bestie, welcome to ztest β it lives in the User Commands section of the manual and it's literally here to vibe-check your compressed files. pull up a chair, we're doing this π
β¨ NAME β¨
ztest β check the integrity of compressed files π«Ά
π SYNOPSIS π
ztest [options] [files]
that's it. that's the whole entrance. iconic.
π¦ DESCRIPTION π¦
so ztest checks the integrity of the compressed files you point it at. that's the main character job, no cap. π
it also warns you if:
- an uncompressed file has a compressed file name extension (like, girl, why are you cosplaying), or
- a compressed file has a wrong compressed extension.
uncompressed files are otherwise ignored β no notes, they're just existing.
if a file is specified as -, then the integrity of compressed data read from standard input gets checked. quick heads up though: data read from standard input must be all in the same compressed format. no mixing, we don't do that here π.
if a file fails to decompress, doesn't exist, can't be opened, or is a terminal, ztest just keeps going and tests the rest of the files β she does not spiral, she moves on. π
a final diagnostic is shown at verbosity level 1 or higher if any file fails the test when testing multiple files.
if no files are specified: recursive searches examine the current working directory, and nonrecursive searches read standard input. iykyk.
the formats supported are bzip2, gzip, lzip, xz, and zstd. slay.
β οΈ bestie, listen. error detection in the xz format is broken. first, some xz files lack integrity information. second, not all xz decompressors can check the integrity of all xz files. third β and this is the wild one β section 2.1.1.2 'Stream Flags' of the xz format specification allows xz decompressors to produce garbage output without issuing any warning. so xz files can't always be checked as reliably as files in the other formats can. not me crying π it's giving "trust issues".
π₯ OPTIONS π₯
-h,--helpβ display this help and exit. cute, quick, done.-V,--versionβ output version information and exit. the origin story.-M,--format=<list>β process only the formats in<list>. picky queen behavior π-N,--no-rcfileβ don't read the runtime configuration file. no outside opinions, thank you.-O,--force-format=<fmt>β force the input format. we're not guessing today.-q,--quietβ suppress all messages. peace and quiet, she's meditating π§-r,--recursiveβ operate recursively on directories. dig in, bestie.-R,--dereference-recursiveβ recursively follow symbolic links. following the lore π-v,--verboseβ be verbose (a 2nd-vgives more). she's a talker, and honestly? obsessed.-x,--exclude=<pattern>β exclude files matching a shell pattern. not you, not you, definitely not you π--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--zst=<command>β set compressor and options for zstd format
and just so we're clear: valid formats for options -M and -O are 'bz2', 'gz', 'lz', 'xz', and 'zst'. memorize it, it's on the quiz π
β EXIT STATUS β
0β if all compressed files check OK π (the good ending)1β if environmental 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 π¨
π REPORTING BUGS π
found a bug? tell the girlies at zutils-bug@nongnu.org β they want the tea fr fr.
Zutils home page: http://www.nongnu.org/zutils/zutils.html
π COPYRIGHT π
Copyright Β© 2026 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. (yes, all caps, it's serious, respect it π)
π§ SEE ALSO π§
The full documentation for ztest is maintained as a Texinfo manual. If the info and ztest programs are properly installed at your site, the command
info zutils
should give you access to the complete manual. go read it, it's giving required reading πβ¨
mwah π that's the whole page β brought to you by zutils 1.16, dated February 2026. she's polished, she's thorough, she's literally the standard. bye bestie π«Άπ
π¦ where this page comes from
- ubuntu resolute: zutils 1.16-1 Β· GPL-2.0-or-later
- ubuntu stonking: zutils 1.16-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms