1.

If we are interested in knowing that whether the two files are identical or not, we can use ___ command.(a) comm(b) diff(c) cmp(d) differI have been asked this question in unit test.I'd like to ask this question from Comparing Files:comm, cmp and diff Command topic in section Handling Ordinary Files of Unix

Answer»

The correct choice is (c) cmp

To elaborate: All the three commands comm, DIFF and cmp are used for comparing files but if we are interested in knowing WHETHER two files are identical or not we can USE comm command without any option. It will SIMPLY return the prompt without DISPLAYING any output if both the files are identical.



Discussion

No Comment Found

Related InterviewSolutions