Differentiate cmp command from diff command.



Differentiate cmp command from diff command...

Answer / Gaurav Kumar Gupta

The cmp command in Unix compares two files byte by byte and reports whether they are identical. The diff command shows the differences between two files line by line.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What are filter commands in unix?

1 Answers  


hi i have directories within the directory. Now i want to copy the directory along with all directories included in it to one location by using copy command? what is the command

2 Answers   ACS, Span Systems,


Differentiate cmp command from diff command.

1 Answers  


What is grep r?

1 Answers  


What is the command to check ports active in UNIX?

4 Answers   Accenture, IBM,


How would you find the size of a file or directory?

1 Answers  


What is pipe command in unix?

1 Answers  


how unix kernel distinguishes between a normal file and device file ?

7 Answers   Google, IBM, McAfee, Vodafone,


Can you explain a little bit about command substitution?

1 Answers  


What is the Unix file system hierarchy?

2 Answers  


Is command prompt unix?

1 Answers  


what is the difference between Touch & cat command

21 Answers   QA,


Categories