-   Linux - General (
-   -   Comparing two directories and its contents (

depam 11-30-2012 06:52 AM

Comparing two directories and its contents
Is there a way to compare two directories? My objective is to compare two directories and identify files that are on one directory and is missing on the other one. The next thing I want to do is to compare the text files recursively on two directories.

linosaurusroot 11-30-2012 06:57 AM

allend 11-30-2012 06:59 AM

Perhaps 'diff dir1 dir2'?
Note - diff also takes -r option for recursion

Habitual 11-30-2012 07:03 AM


diff --brief --recursive --report-identical-files /folder1 /folder2

diff -qr /somedir/ /someotherdir/

depam 01-25-2013 10:41 PM

Thanks this is really helpful

All times are GMT -5. The time now is 07:13 AM.