diff
The Unix tool that computes the minimal difference between two text files — and thereby the foundation of every version control system that followed.
Written by Douglas McIlroy at Bell Labs and shipped with the fifth edition of Unix in 1974. The problem is mathematically precise: find the longest common subsequence between two sequences of lines, so that everything left over is an insertion or a deletion. McIlroy tried several algorithms before settling on the one Hunt and Szymanski published that same year.
The unified format produced by diff -u — lines prefixed + and -, three lines of context around each change, hunk headers like @@ -14,7 +14,9 @@ — is now a lingua franca. Git displays it, review tools render it, and patch reads it back. Line-based comparison is also why reflowing a paragraph shows up as a total rewrite.