Preface
Introduction
Practice Setup
Linux Architecture
Basic Commands
Basic file management or operations on file
User administration
Networking
Linux Interview Questions

 

 

Diff command

While comparing the contents of two file, if you need the different records from each file then this command will be used.

$ diff [ file1 ] [ file2 ]
It displays the different records of each file.
Options :
-I : ignores the case
-w : it skips all spacing variations 
-b : skips the minor spacing differences