1.

What is the command to compare two files in UNIX?

Answer»

You can USE the following COMMANDS to compare two files –

  • cmp [OPTIONS] file1 file2 – compare 2 files character by character
  • comm [options] file1 file2 – compare SORTED files
  • diff [options] file1 file2 – compare two files line by line


Discussion

No Comment Found