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 cmp and diff commands

Answers were Sorted based on User's Feedback



what is the difference between cmp and diff commands..

Answer / supreetha

cmp--> shows the first difference in the files

diff--> shows all the differences in the files

Is This Answer Correct ?    17 Yes 4 No

what is the difference between cmp and diff commands..

Answer / srikanth

cmp - It will compare files byte by byte
Ex: cmp text text1
text text1 differ: byte 2, line 1

diff - It will compare files line by line
If there are any differences in the file. Then it will print
to stdout along with all lines

Is This Answer Correct ?    13 Yes 0 No

Post New Answer

More Shell Script Interview Questions

How to customise the other shell?

2 Answers   Quest,


What are the four fundamental components of every file system on linux?

0 Answers  


What is the use of "$?" Sign in shell script?

0 Answers  


Write a command sequence to find the count of each word?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


What is an sh file?

0 Answers  


Please give me example of " at command , contrab command " how to use

0 Answers  


What is .sh file in mac?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


What are the different types of shell scripting?

0 Answers  


What language is bash?

0 Answers  


How can the contents of a file inside jar be read without extracting in a shell script?

0 Answers  


Categories