Vidyalelo
Computer Science · Q46

UNIX

Engineering and GATE · Computer Science · question 46

Q46

The command used to compare the files is known as

A.
comp
B.
cmp
Answer
C.
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.