How do I compare two files in UNIX?

Khánh Đoan

New member
How do I compare two files in UNIX?
Answer
There are 3 basic commands to compare files in unix:
  1. cmp : This command is used to compare two files byte by byte and as any mismatch occurs,it echoes it on the screen. if no mismatch occurs i gives no response. …
  2. comm : This command is used to find out the records available in one but not in another.
  3. diff.
 

Tìm kiếm

Back
Top