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 chown command do?
What is nr in awk command?
What is $0 bash?
What is .sh file?
What does #!/ Bin sh do?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Explain how to use grep command to list find the records of a file containing 10 different strings?
Differentiate cmp command from diff command.
Who command in unix?
Which command is used to kill the last background job?
What is grep short for?
How do you grep a case insensitive?
Who invented grep?
Enumerate some of the most commonly used network commands in unix?
What are awk commands?