# xzdiff(1) - man - phpMan

[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 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)](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 filenames  instead  of  those
       specified.



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