Diff utility

From Wiki @ Karl Jones dot com
Revision as of 04:29, 3 July 2015 by Karl Jones (Talk | contribs) (First)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In computing, the diff utility (diff tool, etc.) is a data comparison tool that calculates and displays the differences between two files.

Unlike edit distance notions used for other purposes, diff is line-oriented rather than character-oriented, but it is like Levenshtein distance in that it tries to determine the smallest set of deletions and insertions to create one file from the other.

The diff command displays the changes made in a standard format, such that both humans and machines can understand the changes and apply them: given one file and the changes, the other file can be created.

Typically, diff is used to show the changes between two versions of the same file.

External links