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
Using unix command how to display no of records in oracle?
What is the use of the tee command?
What's a command word?
What will the following command do?
Differentiate cmp command from diff command.
What is the use of awk command in unix?
What does the md command do?
What does #!/ Bin sh do?
How can you see the command line history?
What is the difference between cat command and more command?
What is the general format of unix command syntax?
What does pipe () return?
What does the command '$ls | wc –l > file1' do?
What is the use of egrep command in unix?
Who invented grep?