ZTEST(1)

πŸ“¦ version 1.15, in alpine 3.24

✨ ztest(1) β€” User Commands ✨

hey bestie, welcome to the ztest(1) manual page β€” User Commands section, main character energy only πŸ’…

πŸŽ€ NAME πŸŽ€

ztest β€” check the integrity of compressed files

🌸 SYNOPSIS 🌸

ztest [options] [files]

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so ztest checks the integrity of the compressed files you specify. 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. like, not its problem πŸ’…

if a file is specified as '-', the integrity of compressed data read from standard input is checked. Data read from standard input must be all in the same compressed format. no mixing formats, bestie β€” pick one vibe ✨

if a file fails to decompress, does not exist, can't be opened, or is a terminal, ztest continues testing 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.

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, xz, and zstd. slay 🌈

🚨 xz girlies listen up: 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, 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 checked as reliably as files in the other formats can. no cap, that's just the situation 😭

exit status is 0 if all compressed files check OK, 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.

πŸ’… OPTIONS πŸ’…

  • -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 the input format
  • -q, --quiet β€” suppress all messages
  • -r, --recursive β€” operate recursively on directories
  • -R, --dereference-recursive β€” recursively follow symbolic links
  • -v, --verbose β€” be verbose (a 2nd -v gives more)
  • -x, --exclude=<pattern> β€” exclude files matching a shell pattern
  • --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

Valid formats for options -M and -O are 'bz2', 'gz', 'lz', 'xz', and 'zst'. that's the whole roster, bestie 🫢

πŸ› REPORTING BUGS πŸ›

got a bug? don't suffer in silence β€” report bugs to zutils-bug@nongnu.org

Zutils home page: http://www.nongnu.org/zutils/zutils.html

Copyright Β© 2025 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. periodt πŸ’œ

🌈 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. iykyk 🧚


okay bye bestie β€” with love from zutils 1.15, May 2025, ZTEST(1) πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from