man > xzdiff(1)

TLDR: xzdiff (tldr-pages)

Invokes `diff` on files compressed with `xz`, `lzma`, `gzip`, `bzip2`, `lzop`, or `zstd`.

  • Compare two files
    xzdiff {{path/to/file1}} {{path/to/file2}}
  • Compare two files, showing the differences side by side
    xzdiff --side-by-side {{path/to/file1}} {{path/to/file2}}
  • Compare two files and report only that they differ (no details on what is different)
    xzdiff --brief {{path/to/file1}} {{path/to/file2}}
  • Compare two files and report when the files are the same
    xzdiff --report-identical-files {{path/to/file1}} {{path/to/file2}}
  • Compare two files using paginated results
    xzdiff --paginate {{path/to/file1}} {{path/to/file2}}
XZDIFF(1)                                     XZ Utils                                     XZDIFF(1)

NAME
       xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files

SYNOPSIS
       xzcmp [cmp_options] file1 [file2]
       xzdiff [diff_options] file1 [file2]
       lzcmp [cmp_options] file1 [file2]
       lzdiff [diff_options] file1 [file2]

DESCRIPTION
       xzcmp  and  xzdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1),
       bzip2(1), lzop(1), or zstd(1).  All options  specified  are  passed  directly  to  cmp(1)  or
       diff(1).  If only one file is specified, then the files compared are file1 (which must have a
       suffix  of a supported compression format) and file1 from which the compression format suffix
       has been stripped.  If two files are specified, then they are uncompressed if  necessary  and
       fed  to  cmp(1) or diff(1).  The exit status from cmp(1) or diff(1) is preserved unless a de‐
       compression error occurs; then exit status is 2.

       The names lzcmp and lzdiff are provided for backward compatibility with LZMA Utils.

SEE ALSO
       cmp(1), diff(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), zdiff(1)

BUGS
       Messages from the cmp(1) or diff(1) programs refer to temporary filenames  instead  of  those
       specified.

Tukaani                                      2021-06-04                                    XZDIFF(1)

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-19 17:13 @216.73.216.42
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!