ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
what is the difference between  commmands cmp and diff?
 Question Submitted By :: Zikku
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the difference between commmands cmp and diff?
Answer
# 1
The cmp command compares two files of any type and writes
the results to the standard output.  By default, cmp is
silent if the files are the same; if they differ, the byte
and line number at which the first difference occurred is
reported.

 diff command find differences between two files
 
Is This Answer Correct ?    0 Yes 0 No
Suitable
[Ritvi Information Technology]
 
  Re: what is the difference between commmands cmp and diff?
Answer
# 2
The cmp command compares only first diffrence between two 
file,but in case of diff will cmpare hole file diffrence.
 
Is This Answer Correct ?    0 Yes 0 No
Rajesh Kumar (cap)
 
 
 
  Re: what is the difference between commmands cmp and diff?
Answer
# 3
cmp compares byte by byte; diff compares line by line.
 
Is This Answer Correct ?    0 Yes 0 No
William
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
what is the shell for dos,nt operating systems?  1
what is the command to list all files in a directory, including the hidden files in UNIX ?  3
How to identify whether a file is normal file or directory?  2
what is the use of "test" command in unix?  3
what does the 'tee' command do?  2
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands? Deloitte4
How to get the operating system's information in unix? IBM4
distinguish between user mode and kernel mode? Infosys1
How do you move a process which is running background to foreground?  5
How does the user view the contents of a text file in UNIX? IBM3
How we will execute previous command in vi editor? Infosys2
How to redirect standard error to a file?  1
what is the use of wild cards?  2
what are the uses of filters?  1
Which Command is Used for temprary switch User? BitWise3
How to remove a crontab file?  1
what is the command to find out which shell you are running?  5
which command is used to change group?  3
Give Command that will change the name of a directly from paypal to eBay IBM1
distinguish between physical addresses and logical address? Infosys1
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com