LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-26-2003, 02:25 PM   #1
tmoorman
Member
 
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.

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

Rep: Reputation: 120Reputation: 120
This should work:

Code:
diff -r --brief dir1 dir2
 
Old 09-26-2003, 02:45 PM   #3
tmoorman
Member
 
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...
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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