🎴 Flashcard Mode

UNIX - 3

Card1 / 13
Mastered0
Review0
QuestionClick to flip

To compare content of two files in UNIX, we use

AnswerClick to flip back
A
cmp
💡 Explanation:

The cmp command in UNIX performs a byte-by-byte comparison of two files and reports the first differing byte and line number. Unlike 'diff' which shows line-by-line differences, cmp gives a binary-style comparison. The 'compare' command doesn't exist in standard UNIX, and 'test' is for conditional expressions.

Change Mode