Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-26-2003, 02:25 PM   #1
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Rep: Reputation: 15
Question 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.

Old 09-26-2003, 02:32 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 121Reputation: 121
This should work:

diff -r --brief dir1 dir2
Old 09-26-2003, 02:45 PM   #3
Registered: Aug 2003
Location: Ottawa, Ontario, Canada
Distribution: Kubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks, that worked. I had thought that diff only worked with text files. Live and learn...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
compare two folders bluenectar Linux - Newbie 10 08-05-2005 12:23 AM
Beyond Compare / WinDiff riluve Linux - Newbie 6 01-26-2005 09:05 AM
Directory Tree Compare/Sync for Linux Burgin Linux - Software 0 05-29-2004 10:27 PM
Help with a Directory Compare Script bullfrog Linux - General 1 02-04-2003 09:05 AM
Best way to compare 2 directory heirarchies? Electrode Linux - General 1 11-14-2002 11:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration