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

Which command is used to find whether the system is 32 bit or 64 bit?

633


What command is used to check the current users?

598


Explain command to view process running?

619


How to use grep command to list find the records of a file containing 10 different strings?

650


Which command will print your home directory on screen?

548






Which unix command lists files/folders in alphabetical order?

622


What is the nmap command?

588


What is the use of finger command?

603


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

628


What is grep and how do you use it?

581


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

593


What is the function of grep command in unix?

593


What do chmod, chown, chgrp commands do?

641


Explain mount and unmount command.

621


What is used to type command?

547