jpayne@68: .\" SPDX-License-Identifier: 0BSD jpayne@68: .\" jpayne@68: .\" Authors: Lasse Collin jpayne@68: .\" Jia Tan jpayne@68: .\" jpayne@68: .\" (Note that this file is not based on gzip's zdiff.1.) jpayne@68: .\" jpayne@68: .TH XZDIFF 1 "2024-02-13" "Tukaani" "XZ Utils" jpayne@68: .SH NAME jpayne@68: xzcmp, xzdiff, lzcmp, lzdiff \- compare compressed files jpayne@68: . jpayne@68: .SH SYNOPSIS jpayne@68: .B xzcmp jpayne@68: .RI [ option... ] jpayne@68: .I file1 jpayne@68: .RI [ file2 ] jpayne@68: .br jpayne@68: .B xzdiff jpayne@68: \&... jpayne@68: .br jpayne@68: .B lzcmp jpayne@68: \&... jpayne@68: .br jpayne@68: .B lzdiff jpayne@68: \&... jpayne@68: . jpayne@68: .SH DESCRIPTION jpayne@68: .B xzcmp jpayne@68: and jpayne@68: .B xzdiff jpayne@68: compare uncompressed contents of two files. jpayne@68: Uncompressed data and options are passed to jpayne@68: .BR cmp (1) jpayne@68: or jpayne@68: .BR diff (1) jpayne@68: unless jpayne@68: .B \-\-help jpayne@68: or jpayne@68: .B \-\-version jpayne@68: is specified. jpayne@68: .PP jpayne@68: If both jpayne@68: .I file1 jpayne@68: and jpayne@68: .I file2 jpayne@68: are specified, they can be uncompressed files or files in formats that jpayne@68: .BR xz (1), jpayne@68: .BR gzip (1), jpayne@68: .BR bzip2 (1), jpayne@68: .BR lzop (1), jpayne@68: .BR zstd (1), jpayne@68: or jpayne@68: .BR lz4 (1) jpayne@68: can decompress. jpayne@68: The required decompression commands are determined from jpayne@68: the filename suffixes of jpayne@68: .I file1 jpayne@68: and jpayne@68: .IR file2 . jpayne@68: A file with an unknown suffix is assumed to be either uncompressed jpayne@68: or in a format that jpayne@68: .BR xz (1) jpayne@68: can decompress. jpayne@68: .PP jpayne@68: If only one filename is provided, jpayne@68: .I file1 jpayne@68: must have a suffix of a supported compression format and the name for jpayne@68: .I file2 jpayne@68: is assumed to be jpayne@68: .I file1 jpayne@68: with the compression format suffix removed. jpayne@68: .PP jpayne@68: The commands jpayne@68: .B lzcmp jpayne@68: and jpayne@68: .B lzdiff jpayne@68: are provided for backward compatibility with LZMA Utils. jpayne@68: . jpayne@68: .SH EXIT STATUS jpayne@68: If a decompression error occurs, the exit status is jpayne@68: .BR 2 . jpayne@68: Otherwise the exit status of jpayne@68: .BR cmp (1) jpayne@68: or jpayne@68: .BR diff (1) jpayne@68: is used. jpayne@68: . jpayne@68: .SH "SEE ALSO" jpayne@68: .BR cmp (1), jpayne@68: .BR diff (1), jpayne@68: .BR xz (1), jpayne@68: .BR gzip (1), jpayne@68: .BR bzip2 (1), jpayne@68: .BR lzop (1), jpayne@68: .BR zstd (1), jpayne@68: .BR lz4 (1)