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
Write a command that will display files in the current directory, in a colored, long format.
Which command should you use to find the remaining disk space in unix server?
How do I run a whois command?
Why is grep called grep?
What are awk commands?
Differentiate cat command from more command.
Explain ‘library functions’ with respect to unix commands?
What is awk used for?
What is the use of tee command?
What is the command to find maximum memory taking process on the server?
What is the command to view process running?
What is the behavioural difference between cmp and diff commands?
What is the search command in unix?
What do chgrp command do?
Is grep faster than awk?