LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I compare two folders to see if the directories are identical (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-compare-two-folders-to-see-if-the-directories-are-identical-662688/)

HGeneAnthony 08-14-2008 02:58 AM

How can I compare two folders to see if the directories are identical
 
I was wondering if Linux offers a tool I can run against two directories to see if they're identical and tell me if there's any differences.

druuna 08-14-2008 04:59 AM

Hi,

Have you tried diff?

diff <dirA> <dirB> will tell which files are only in one of the dirs and if the content of the normal files (based on filenames) are different it will also tell you.

Hope this helps.

HGeneAnthony 08-14-2008 05:55 AM

Reply
 
Thank you that's what I was looking for. Works perfectly.


All times are GMT -5. The time now is 06:03 PM.