General overview
diff [Options] source file destination file
Describe
In the simplest case, diff compares the contents of two files (source and destination files). The file name can be-text read by the standard input device. As a special case,
diff command explanation1. OverviewThere are good text comparison tools available under the Windows system, such as the common beyond Compare,winmerge is a comparison tool for graphical interfaces and very handy, and if you just work under Windows,
The diff command compares a given two files in the simplest case. If you use "-" instead of the "file" parameter, the content to be compared will come from standard input. The diff command compares the similarities and differences of text files in a
You at the command line, enter:
$ diff
Diff will tell you what the difference is between the two files. Its display result is not very understood, below I will explain, how to read the diff.
bg2012082901
One, diff three kinds of formats
For
Common Linux commands (28th)-diff
The diff command is an important tool in linux. It is used to compare the content of files, especially files of different versions, to find the changes. Diff prints the changes of each line in the command line. The
Just in and the company to do offline IP comparison, finally handmade, feeling is still more troublesome, when the data is very large when the manual can not be carried outI want to use the Linux diff to compare, found that the results are very
I. OverviewDiff and Patch are a pair of complementary tools, mathematically, diff is similar to the difference between two sets, and patches are similar to the and operations on two sets. Diff compares the differences of two files or collections of
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also
Although there are many graphical interface diff tools, but for the command-line plot of people, when the fast terminal under the keyboard, always do not want to take the mouse to click elsewhere, and sometimes the graphical interface occupies a lot
The diff command is an important tool in linux. it is used to compare the content of files, especially files of different versions, to find the changes. The following are detailed instructions and examples.
The diff command is an important tool in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.