cmp
A command that compares two files byte by byte and reports the first difference.
In more detail
Unlike diff, it works on binary files such as disk images. A quiet run with no output means the files are identical.
Related terms
- diff — A listing of the differences between two versions of something, such as two files, two commits or two screenshots.
Taught in
- Friday's Backup, Monday's Restore: Incrementals, Images And Compressed Logs — CompTIA Linux+ (XK0-006) Exam Prep
- Linux As A Guest: Clones, Clouds And Containers — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep