compression compression;corrugated metal pipe corrugated metal pipe;compressor compressor;compromise compromise
Linux cmp command syntax
Function: cmp command is used to compare two files for differences.
Syntax: cmp [-clsv][-i <number of characters>][--help][first file][second file]
Linux cmp command example
To determine if two files are the same, enter:
cmp prog.o.bak prog.o
This compares prog.o.bak and prog.o. If the files are identical, no message is displayed. If the files are different, the first different location is shown; for example:
prog.o.bak prog.o differ: char 4, line 1