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

Answers were Sorted based on User's Feedback



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

Answer / prakash singh syan

diff file1 file2

Above command will display all the lines which r diff in
file1 & file2 whereas, cmp will only display 1st occurance
of difference.

Is This Answer Correct ?    14 Yes 1 No

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

Answer / hari

cmp file1 file2

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Unix General Interview Questions

What is a filter in unix? Give an example.

0 Answers  


How to remove files in unix?

0 Answers  


Differentiate between absolute and related path?

0 Answers  


How do you go to a directory in unix?

0 Answers  


Is a form of interprocess communication in unix?

0 Answers  






In unix, what is echo used for?

0 Answers   BPL,


How would you identify daemons in unix?

0 Answers  


Explain what is a fifo?

0 Answers  


What are drawbacks of ssh v2?

0 Answers  


What is a unix file?

0 Answers  


List the different types of files that can be made available with unix?

0 Answers  


What is directory unix?

0 Answers  


Categories