Solved

Comparing Directory Structures/Files (perferably with a checksum)

Posted on 2003-11-20
2
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

724 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