Also known as compare, diff is short for different or difference. Diff is a term used to describe a program's capability of showing you the difference between two or more files. This can be an invaluable tool in programming as it enables a developer to see what has changed in-between versions.