LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01: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, 01:32 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

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

Code:
diff -r --brief dir1 dir2
 
Old 09-26-2003, 01: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



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-04-2005 11:23 PM
Beyond Compare / WinDiff riluve Linux - Newbie 6 01-26-2005 08:05 AM
Directory Tree Compare/Sync for Linux Burgin Linux - Software 0 05-29-2004 09:27 PM
Help with a Directory Compare Script bullfrog Linux - General 1 02-04-2003 08:05 AM
Best way to compare 2 directory heirarchies? Electrode Linux - General 1 11-14-2002 10:36 PM

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

All times are GMT -5. The time now is 03:22 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
Open Source Consulting | Domain Registration