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

Submitted by: Administrator
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.
Submitted by: Administrator

Read Online Unix General Job Interview Questions And Answers