Tag: diff

Compare contents of two files

Compare contents of two files by deleting only unique lines from ‘file1’ comm -1 file1 file2

cmp Command – Compare Files

The command cmp is similar to diff: # cmp file1 file2 file1 file2 differ: byte 10, line 1

Basic Diff

If you use the diff command, you will be able to see the difference between the files as shown below:…