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

Suggest An Answer

No suggestions avaliable!