zcmp
Compare gzip-compressed files byte-by-byte
TLDR
SYNOPSIS
zcmp [-l] [-s] file1 file2
DESCRIPTION
zcmp compares gzip-compressed files byte-by-byte without requiring manual decompression. It invokes cmp on uncompressed contents and passes all supplied options directly to it.By default, zcmp reports only the first difference found. The -l flag shows all differing byte positions and values. Silent mode (-s) suppresses all output and communicates only through exit codes: 0 if files are identical, 1 if they differ, 2 on error.The command is part of the gzip package and acts as a convenience wrapper. For line-by-line comparison of compressed files, use zdiff instead.
PARAMETERS
-b, --print-bytes
Print differing bytes (as octal values).-l, --verbose
Output byte numbers and differing byte values for all differences.-s, --quiet, --silent
Suppress all output; communicate result only via exit status.-i SKIP, --ignore-initial=SKIP
Skip the first SKIP bytes of each (decompressed) input.-n LIMIT, --bytes=LIMIT
Compare at most LIMIT bytes.
CAVEATS
Gzip format. For .gz files. Part of gzip package.
HISTORY
zcmp is part of the gzip package, providing cmp-like functionality for compressed files.
