Unix and Linux Find Differences Between Two Folders

Fig. : Finding differences between folders

Fig. : Finding differences between folders

The syntax is as follows to list or find differences between folders and directories:

diff dir1 dir2
 
diff /path/to/dir1 /path/to/dir2
 
diff3 dir1 dir2 dir3

See diff command man page for more info – diff(1),diff3(1).

Examples and usage: 20 Unix/Linux Command Line Tricks - Part I

Leave a Comment