# phpman > man > bzdiff(1)



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



## NAME
       bzcmp, bzdiff - compare bzip2 compressed files

## SYNOPSIS
       **bzcmp** [ cmp_options ] file1 [ file2 ]
       **bzdiff** [ diff_options ] file1 [ file2 ]

## DESCRIPTION
       _Bzcmp_  and  _bzdiff_  are used to invoke the _cmp_ or the _diff_ program on bzip2 compressed files.
       All options specified are passed directly to _cmp_ or _diff_.  If only 1 file is specified,  then
       the files compared are _file1_ and an uncompressed _file1_.bz2.  If two files are specified, then
       they are uncompressed if necessary and fed to _cmp_ or _diff_.  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), [bzmore(1)](https://www.chedong.com/phpMan.php/man/bzmore/1/markdown), [bzless(1)](https://www.chedong.com/phpMan.php/man/bzless/1/markdown), [bzgrep(1)](https://www.chedong.com/phpMan.php/man/bzgrep/1/markdown), [bzip2(1)](https://www.chedong.com/phpMan.php/man/bzip2/1/markdown)

## BUGS
       Messages  from  the _cmp_ or _diff_ programs refer to temporary filenames instead of those speci‐
       fied.



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