1.

Which command is used to display the differences between files?(a) comm(b) diff(c) cmp(d) differThis question was addressed to me in class test.This question is from Comparing Files:comm, cmp and diff Command in chapter Handling Ordinary Files of Unix

Answer»

Correct option is (b) diff

Explanation: diff COMMAND is used for comparing FILES and DISPLAYING the DIFFERENCES between them.

diff command uses certain SYMBOLS and instructions to indicate the changes that are required to make two files identical. For example,

a– for appending

c– for changing

d– for deleting



Discussion

No Comment Found

Related InterviewSolutions