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

What do know about tee command?

1217


What does the md command do?

1189


What does the metacharacter mean?

1185


How do I find previous commands in unix?

1242


Which command is used to create a directory?

1221


Why is it called grep?

1083


What is the use of awk command in unix?

1184


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

1281


How do I clear my terminal history?

1228


What is pipe command in unix?

1355


Can you enlist some commonly used network commands?

1151


What does grep v grep do?

1122


Explain command to show the space allocation of files?

1168


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

1194


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

1218