Q46
The command used to compare the files is known as
A.
comp
B.
cmp
AnswerC.
do
D.
ccp
E.
None of the above
Answer: Option B
Solution
Answer: Option B
Solution:
In Unix, the cmp command is used to compare two files byte by byte and determine whether their contents are identical or not. When you execute this command followed by the names of two files, it compares the files and provides information about the first byte where they differ, if any.So, Option B is the command used to compare files in Unix.