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

How zip the file in unix?

0 Answers  


What are the criteria for choosing a process for swapping into memory from the swap device?

0 Answers  


Does windows 10 have unix?

0 Answers  


how do display only hidden files in unix?

15 Answers   Accenture,


How do I run a shell script in unix?

0 Answers  


Is mac a unix system?

0 Answers  


Difference between the fork() and vfork() system call?

0 Answers  


What is called in unix?

0 Answers  


How to know the present working directory in unix?

1 Answers  


What uses unix?

0 Answers  


finding the presence of a word in a list of 'n' files (pattern matching)

2 Answers   TCS,


What are the common directory management commands in unix?

0 Answers  


Categories