Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Are you in or at the office?

1127


Which command is used to delete all files in the current directory and all its sub-directories?

1267


How do I search for text in vi?

1049


Which command is used to kill the last background job?

1337


What is sed awk grep?

1139


What is the pipe command?

1193


Which unix command lists files/folders in alphabetical order?

1765


What is time_t?

1118


Is ‘du’ a command? If so, what is its use?

1155


What do chown command do?

1195


What are grep patterns?

1088


What is the use of sed command in unix?

1215


What do chmod, chown, chgrp commands do?

1291


What happens when we execute a unix command?

1147


How to display no of records in oracle using unix command?

1175