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 system bootup in unix.

0 Answers  


What is the chief difference between the –v and –x option s to set?

0 Answers  


Write a script that prints out date information in this order: time, the day of week, day number, month, year(sample output: 17:34:51 pdt sun 12 feb 2012)

0 Answers  


What are pipes and filters in unix?

0 Answers  


What does unix .profile contains?

0 Answers   BPL,


What are directories in unix?

0 Answers  


What is unix structure?

0 Answers  


What is the best free unix based os?

0 Answers  


What is the command to connect to remote terminals

0 Answers   Apps Associates,


Write down some common shells with their indicators?

0 Answers  


Differentiate between paging and swapping?

0 Answers  


What is home directory in unix?

0 Answers  


Categories