# ZDIFF(1) - man - phpMan

[ZDIFF(1)](https://www.chedong.com/phpMan.php/man/ZDIFF/1/markdown)                               General Commands Manual                              [ZDIFF(1)](https://www.chedong.com/phpMan.php/man/ZDIFF/1/markdown)



## NAME
       zcmp, zdiff - compare compressed files

## SYNOPSIS
       **zcmp** [ cmp_options ] file1 [ file2 ]
       **zdiff** [ diff_options ] file1 [ file2 ]

## DESCRIPTION
       _Zcmp_  and  _zdiff_ are used to invoke the _cmp_ or the _diff_ program on files compressed via _gzip_.
       All options specified are passed directly to _cmp_ or _diff_.  If only _file1_ is specified, it  is
       compared  to  the  uncompressed contents of _file1_.gz.  If two files are specified, their con‐
       tents (uncompressed if necessary) are fed to _cmp_ or _diff_.  The input files are not  modified.
       The exit status from _cmp_ or _diff_ is preserved.

## 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), [zmore(1)](https://www.chedong.com/phpMan.php/man/zmore/1/markdown), [zgrep(1)](https://www.chedong.com/phpMan.php/man/zgrep/1/markdown), [znew(1)](https://www.chedong.com/phpMan.php/man/znew/1/markdown), [zforce(1)](https://www.chedong.com/phpMan.php/man/zforce/1/markdown), [gzip(1)](https://www.chedong.com/phpMan.php/man/gzip/1/markdown), [gzexe(1)](https://www.chedong.com/phpMan.php/man/gzexe/1/markdown)

## BUGS
       Messages  from the _cmp_ or _diff_ programs may refer to file names such as "-" instead of to the
       file names specified.



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