what is the difference between commmands cmp and diff?

Answer Posted / suitable

The cmp command compares two files of any type and writes
the results to the standard output. By default, cmp is
silent if the files are the same; if they differ, the byte
and line number at which the first difference occurred is
reported.

diff command find differences between two files

Is This Answer Correct ?    56 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

771


What is the first character of the output in ls l command?

642


Who invented grep?

664


How does pipe () work?

601


What is the nmap command?

595






What are the general commands in using unix os for a beginner?

585


What does the “echo” command do?

636


Who command in unix operating system?

669


Explain ‘library functions’ with respect to unix commands?

612


What do chmod command do?

610


What does this command do,"$more readme.txt“?

699


Can you explain a little bit about command substitution?

623


what is the advaantage of each user having its own copy of the shell?

2047


What is the command to find maximum memory taking process on the server?

678


Write a command that will display files in the current directory, in a colored, long format.

695