# man > lzcmp(1)

> **TLDR:** This command is an alias of `xzcmp`.
>
- View documentation for the original command:
  `tldr xzcmp`

*Source: tldr-pages*

---

[_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), [**lzop**(1)](https://www.chedong.com/phpMan.php/man/lzop/1/markdown), or [**zstd**(1)](https://www.chedong.com/phpMan.php/man/zstd/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 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)](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), [**zstd**(1)](https://www.chedong.com/phpMan.php/man/zstd/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                                      2021-06-04                                    [_XZDIFF_(1)](https://www.chedong.com/phpMan.php/man/XZDIFF/1/markdown)
