Linux Commands Examples

A great documentation place for Linux commands


, lzcmp, lzdiff compare compressed files

see also : lzcmp - lzdiff - cmp - diff - xz - gzip - bzip2 - zdiff


xzcmp [cmp_options] file1 [file2]
[diff_options] file1 [file2]
[cmp_options] file1 [file2]
[diff_options] file1 [file2]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


xzcmp and xzdiff invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All options specified are passed directly to cmp(1) or diff(1). 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) or diff(1). The exit status from cmp(1) or diff(1) is preserved.

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


Messages from the cmp(1) or diff(1) programs refer to temporary filenames instead of those specified.

see also

cmp , diff , xz , gzip , bzip2 , lzop, zdiff

How can this site be more helpful to YOU ?

give  feedback