zdiff
Compare gzip-compressed files line-by-line
TLDR
Compare compressed files
SYNOPSIS
zdiff [-u] [-c] [-y] [options] file1 file2
DESCRIPTION
zdiff compares gzip-compressed files line-by-line without requiring manual decompression. It works like diff but transparently handles .gz files, decompressing them on the fly before comparing.
All standard diff output formats are supported: unified (-u), context (-c), and side-by-side (-y). Any options accepted by diff can be passed through to zdiff.
The command is part of the gzip package and serves as a convenience wrapper. For byte-by-byte comparison of compressed files, use zcmp instead.
PARAMETERS
-u
Unified format.-c
Context format.-y
Side by side.-q
Brief output.
CAVEATS
Gzip format. Decompresses to compare. Part of gzip package.
HISTORY
zdiff is part of the gzip package, providing diff functionality for compressed files.
