Linux Today: Linux News On Internet Time.

An introduction to the diff command

Apr 03, 2020, 05:00 (0 Talkback[s])
(Other stories by Joerg Kastning)

The command diff from the package diffutils compares files line by line. It comes in very handy when you would like to check if there were recent changes to a file since the last backup and what they are. An exit status of 0 means no differences were found, 1 means some differences were found, and 2 means trouble. And of course, if there are changes, diff will show them to you.

Complete Story