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

Explain superblock in unix.

0 Answers  


Enlist common shells with their indicators.

0 Answers  


How do I run a shell script in unix?

0 Answers  


What is meant by the term nohup?

0 Answers  


What is alias mechanism?

0 Answers  


What does cd mean in unix?

0 Answers  


Which data structure is used to maintain the file identification?

0 Answers  


What is the main goal of the Memory Management?

0 Answers  


Does apple run unix?

0 Answers  


Explain what are the unix system calls for i/o?

0 Answers  


How to get the nth word of a line in Unix?

0 Answers  


What is home directory in unix?

0 Answers  


Categories