XZDIFF(1)
๐ XZDIFF(1) โ XZ Utils ๐
okay bestie, this is XZDIFF(1) from XZ Utils ๐ and its whole thing is comparing files that are already compressed, so you never have to unzip them first ๐ญโจ the commands in this page are xzcmp, xzdiff, lzcmp, and lzdiff, and they all do the same comparison job ๐
๐ NAME ๐
xzcmp, xzdiff, lzcmp, lzdiff - compare compressed files ๐ฆ
โจ SYNOPSIS โจ
xzcmp [option...] file1 [file2]
xzdiff ...
lzcmp ... (DEPRECATED)
lzdiff ... (DEPRECATED)
๐ธ DESCRIPTION ๐ธ
okay so xzcmp and xzdiff are the dynamic duo here ๐ they compare the uncompressed contents of two files. the uncompressed data and your options get handed off to cmp(1) or diff(1), unless you ask for --help or --version, in which case they just show you that info instead ๐ซถ
if you give both file1 and file2, they can be plain uncompressed files, or files in any format that xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), or lz4(1) can decompress ๐ฅ the right decompression command gets picked from the filename suffixes of file1 and file2. a file with a suffix it doesn't recognize is assumed to be either uncompressed or something xz(1) can decompress. no cap, it's very chill ๐
if you only give one filename, then file1 has to end in a suffix for a supported compression format ๐ and file2 is assumed to be file1 with that compression suffix chopped off. so file1.xz would pair with plain file1 ๐
the commandslzcmpandlzdiffare only around for backward compatibility with LZMA Utils ๐ they are deprecated and will be removed in a future version, so maybe don't build your whole life around them bestie ๐ญ
๐ช EXIT STATUS ๐ช
if a decompression error happens, the exit status is 2 ๐ otherwise you get whatever exit status cmp(1) or diff(1) gave back โจ
๐ SEE ALSO ๐
cmp(1), diff(1), xz(1), gzip(1), bzip2(1), lzop(1), zstd(1), lz4(1) ๐
that's the whole page, bestie ๐ซถ from Tukaani, dated 2025-03-06, filed under XZDIFF(1) ๐โจ
๐ฆ where this page comes from
- alpine 3.22: xz-doc 5.8.4-r0 ยท GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- alpine 3.23: xz-doc 5.8.4-r0 ยท GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- alpine 3.24: xz-doc 5.8.4-r0 ยท GPL-2.0-or-later AND 0BSD AND Public-Domain AND LGPL-2.1-or-later
- arch rolling: xz 5.8.4-1 ยท GPL-2.0-or-later AND 0BSD AND LicenseRef-Public-Domain AND LGPL-2.1-or-later
- debian trixie: xz-utils 5.8.1-1+deb13u1 ยท 0BSD
- debian trixie: xz-utils 5.8.1-1+deb13u2 ยท 0BSD
- fedora 43: xz 1:5.8.1-2.fc43 ยท 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
- fedora 43: xz 1:5.8.1-4.fc43 ยท 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
- fedora 44: xz 1:5.8.2-2.fc44 ยท 0BSD AND GPL-2.0-or-later AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: xz 5.8.4
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 ยท 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 ยท 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 ยท 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: xz 5.8.1-160000.3.1 ยท 0BSD AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu questing: xz-utils 5.8.1-1build2
- ubuntu questing: xz-utils 5.8.1-1ubuntu0.1 ยท 0BSD
- ubuntu resolute: xz-utils 5.8.3-1 ยท 0BSD
- ubuntu resolute: xz-utils 5.8.3-1ubuntu0.1 ยท 0BSD
- ubuntu stonking: xz-utils 5.8.3-1 ยท 0BSD
- ubuntu stonking: xz-utils 5.8.3-1ubuntu1 ยท 0BSD
- ๐ the page's license: 0BSD
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms