what is the difference between commmands cmp and diff?

Answer Posted / sai kiran

cmp---give the first instance of differnce and place like
line and char number in that line

diff--gives the complete differences in the file with the text

> means which has in second file not in first file
< means which has in first file not in second file

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sed awk grep?

600


What is the use of finger command?

595


Differentiate cat command from more command.

572


Differentiate cmp command from diff command.

584


Which command is used to restrict incoming messages?

587






What is the use of find command in unix?

575


Explain command to show the space allocation of files?

627


What is the use of cut command in unix?

688


What is “chmod” command?

562


What will the following command do?

609


Name the various commands that are used for the user information in unix.

536


Explain command to display different lines that are found when compare two files?

676


What is in grep command?

643


What does #!/ Bin sh do?

585


What do chmod command do?

600