LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-14-2008, 02:58 AM   #1
HGeneAnthony
Member
 
Registered: Mar 2003
Posts: 177

Rep: Reputation: 30
How can I compare two folders to see if the directories are identical


I was wondering if Linux offers a tool I can run against two directories to see if they're identical and tell me if there's any differences.
 
Old 08-14-2008, 04:59 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Location: the Netherlands
Distribution: lfs, debian, rhel
Posts: 7,514
Blog Entries: 1

Rep: Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139Reputation: 1139
Hi,

Have you tried diff?

diff <dirA> <dirB> will tell which files are only in one of the dirs and if the content of the normal files (based on filenames) are different it will also tell you.

Hope this helps.
 
Old 08-14-2008, 05:55 AM   #3
HGeneAnthony
Member
 
Registered: Mar 2003
Posts: 177

Original Poster
Rep: Reputation: 30
Reply

Thank you that's what I was looking for. Works perfectly.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compare folders GUI linmix Linux - Newbie 4 09-12-2011 05:21 PM
copying multiple different files in different directories with identical file names nickleus Linux - Software 4 03-09-2006 01:25 PM
compare two folders bluenectar Linux - Newbie 10 08-04-2005 11:23 PM
How to compare two folders contents? rvoigt Linux - Newbie 6 01-07-2005 12:35 AM
How do I compare md5sums of directories (and of course everything in it)? natalinasmpf General 1 12-08-2003 07:03 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration