How to compare two directories in Linux

We can use the “diff” command to compare two directories in Linux. Below is an example:

The above command will show you the difference between the files of directory1 and directory2 If you don’t want to see the file differences then use -q option or –brief

If you want to compare the subdirectories […]
Continue reading…