diff [-efbwr] file1... file2
The normal output contains lines of these forms:
Following each of these lines are the lines that are affected in the first file flagged by '<', then all the lines that are affected in the second file flagged by '>'.
Except in rare circumstances, diff finds a smallest sufficient set of file differences.