What is the command to compare two files in UNIX?
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
BY Best Interview Question ON 11 Apr 2019