Command is short for difference.
diff compares the contents of two files line by line. After examining the files, it lists the lines that are not different.
Programmers often use this command when they need to make changes to a program rather than rewriting the entire source code.
The simplest form of this command is:
diff file1.txt file2.txt