Diff utility

From Wiki @ Karl Jones dot com
Revision as of 14:46, 24 April 2016 by Karl Jones (Talk | contribs)

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.

Description

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.

See also

External links