The diff command, short for difference, compares the contents of two files line by line. After analyzing the files, it will return the lines that do not match as a result. Programmers often use this command to make changes to the program, rather than rewrite the entire source code.

The simplest form of this command is:

diff file1.ext file2.ext