Compare File Contents in the Terminal

Updated on

cmp <file> <anotherfile> compares the contents of both files and returns the location of the first difference.

Only works with two files at a time.