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 are some command words?
What is nr in awk command?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
How do I search a whole word in vim?
Explain command to display different lines that are found when compare two files?
Why is grep called grep?
What is the command to compare two files in unix?
What is the use of tee command?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
How can you see the command line history?
What is updatedb?
What are the differences among a system call, a library function, and a unix command?
How do you grep a case insensitive?
Who invented grep?
Name the various commands that are used for the user information in unix.