zcmp
The zcmp command line tool is used to compare files compressed using gzip compression. It is typically used to compare the content of two files that have been compressed using gzip. By default, the tool prints the offsets and lines that differ between the two files. It also provides options to control the output format and behavior. You can use the -s or --quiet option to suppress normal output and only display a return status. The -l or --ignore-initial option skips comparing initial bytes in the files. The -Z or --decompress option can be used to compare uncompressed files. It supports comparing files that have been compressed using other compression formats like bzip2 or compress using the --ignore-compressed option. The tool returns an exit status of 0 if the files are identical, 1 if they differ, and 2 if an error occurs.
List of commands for zcmp:
-
zcmp:tldr:a4913 zcmp: Compare a file to its gzipped version (assuming `.gz` exists already).$ zcmp ${filename}try on your machineexplain this command
-
zcmp:tldr:c35f7 zcmp: Invoke `cmp` on two files compressed via `gzip`.$ zcmp ${filename1-gz} ${filename2-gz}try on your machineexplain this command