LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   directory compare (https://www.linuxquestions.org/questions/linux-newbie-8/directory-compare-97206/)

tmoorman 09-26-2003 01:25 PM

directory compare
 
How do you compare the contents of two directories? I am testing my tape drive and afio for backups. I restored 25 mb of data to a different dir and I want to see if the restored files are identical to the files in the original directory.

Thanx.

crabboy 09-26-2003 01:32 PM

This should work:

Code:

diff -r --brief dir1 dir2

tmoorman 09-26-2003 01:45 PM

Thanks, that worked. I had thought that diff only worked with text files. Live and learn...


All times are GMT -5. The time now is 01:32 AM.