Step 1/2: Compare two files

diff OLD NEW lists the lines that differ: < lines come from OLD, > lines from NEW; 2c2 means line 2 changed (c = change, a = add, d = delete). Identical files print nothing and exit with 0; different files exit with 1.

$ diff old.conf new.conf
Fundamentalsdiff
What changed?
Compare app.old.conf with app.new.conf using diff (old file first) to see which lines changed.
zcatNext lesson:awk