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
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
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
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
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
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
If you don't refresh it, you forget to take this opportunity.
Diff
Diff is an essential tool for generating source code patches. The command format is:
Diff [command line option] new file of the original file
Common command line options
Linux patch tool patch AND diff
I. Tool Overview:
Diff patch Generation Tool
Diff can be followed by two file names or two directory names to generate Patches
Patch patching Tool
Patch purpose: generate the target file based on the original file and
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.