# phpman > info > xzdiff

[XZDIFF(1)](https://www.chedong.com/phpMan.php/man/XZDIFF/1/markdown)                          XZ Utils                          [XZDIFF(1)](https://www.chedong.com/phpMan.php/man/XZDIFF/1/markdown)

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)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown)  or [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown) on files compressed with
       [xz(1)](https://www.chedong.com/phpMan.php/man/xz/1/markdown), [lzma(1)](https://www.chedong.com/phpMan.php/man/lzma/1/markdown), [gzip(1)](https://www.chedong.com/phpMan.php/man/gzip/1/markdown), [bzip2(1)](https://www.chedong.com/phpMan.php/man/bzip2/1/markdown), or [lzop(1)](https://www.chedong.com/phpMan.php/man/lzop/1/markdown).  All  options  specified
       are  passed  directly to [cmp(1)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown) or [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown).  If only one file is speci-
       fied, then the files compared are file1 (which must have a suffix of  a
       supported compression format) and file1 from which the compression for-
       mat suffix has been stripped.  If two files are  specified,  then  they
       are  uncompressed  if necessary and fed to [cmp(1)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown) or [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown).  The exit
       status from [cmp(1)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown) or [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown) is preserved.

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

SEE ALSO
       [cmp(1)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown), [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown), [xz(1)](https://www.chedong.com/phpMan.php/man/xz/1/markdown), [gzip(1)](https://www.chedong.com/phpMan.php/man/gzip/1/markdown), [bzip2(1)](https://www.chedong.com/phpMan.php/man/bzip2/1/markdown), [lzop(1)](https://www.chedong.com/phpMan.php/man/lzop/1/markdown), [zdiff(1)](https://www.chedong.com/phpMan.php/man/zdiff/1/markdown)

BUGS
       Messages  from  the [cmp(1)](https://www.chedong.com/phpMan.php/man/cmp/1/markdown) or [diff(1)](https://www.chedong.com/phpMan.php/man/diff/1/markdown) programs refer to temporary file-
       names instead of those specified.

Tukaani                           2011-03-19                         [XZDIFF(1)](https://www.chedong.com/phpMan.php/man/XZDIFF/1/markdown)
