Solved

Comparing Directory Structures/Files (perferably with a checksum)

Posted on 2003-11-20
2
371 Views
Last Modified: 2010-04-21
I have to different directories that I would like to compar bit by bit, byte by byte......
I would like to compare them using some kind of check sum preferably. and to top this
all off its too much to do manualy and it needs to be done regularly with minimal effort preferd....

Thanks...
0
Comment
Question by:EHart7
2 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 180 total points
ID: 9795364
GNU has Diffutils.
This is the manual link. I think it may solve your purpose.

http://tuxisland.org/download/documentations/diffutils/diff.pdf.
0
 
LVL 20

Assisted Solution

by:Gns
Gns earned 70 total points
ID: 9798024
As shivsa says, diff is probably the easy route here... something like
diff -r --brief dir1 dir2
would perhaps be enough? This will just report whether there are any differences between the directories (files only in one place or the other, if the files differ... If they match, this is "silent").
I use this in a script to check some wget mirror data for ... "new arivals" (it's for antivirus updates).

One could of course do something interresting with find and md5sum, but it would perhaps be a bit .... overkill.

-- Glenn
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question