what is the difference between commmands cmp and diff?
Answer Posted / deepa rajendran
The cmp command compares two files, and (without options)
reports the location of the first
difference between them. It can deal with both binary and
ASCII file comparisons. It does a
byte-by-byte comparison.
But in diff compares two files, directories, etc, and
reports all differences between the two. It
deals only with ASCII files. It’s output format is designed
to report the changes necessary to convert
the first file into the second.
| Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
What do know about tee command?
What does the md command do?
What does the metacharacter mean?
How do I find previous commands in unix?
Which command is used to create a directory?
Why is it called grep?
What is the use of awk command in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
How do I clear my terminal history?
What is pipe command in unix?
Can you enlist some commonly used network commands?
What does grep v grep do?
Explain command to show the space allocation of files?
Which command is used to find whether the system is 32 bit or 64 bit?
Explain command to display different lines that are found when compare two files?