Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T08:59:37+00:00 2026-05-11T08:59:37+00:00

I have a large directory that contains only stuff in CS and Math. It

  • 0

I have a large directory that contains only stuff in CS and Math. It is over 16GB in size. The types are text, png, pdf and chm. I have currently two branches: a branch of my brother’s and mine. The initial files were the same. I need to compare them. I have tried to use Git, but there is a long loading time.

What is the best way to compare two big directories?

[Mixed Solution]

  1. Do a ‘ls -R > different_files’ in both directories [1]
  2. ‘sdiff <(echo file1 | md5deep) <(echo file2 | md5deep)’ [2]

What do you think? Any drawbacks?

[1] thanks to Paul Tomblin [2] great thanks to all repliers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T08:59:38+00:00Added an answer on May 11, 2026 at 8:59 am

    How to compare 2 folders without pre-existing commands/products:

    Simply create a program that scans each directory and creates a file hash of each file. It outputs a file with each relative file path and the file hash.

    Run this program on both folders.

    Then you simply compare the 2 output files to see if they are the same. To compare those 2 files you just load them into a string and do a string compare.

    The hashing algorithm you use doesn’t matter. You can use MD5, SHA, CRC, … You could also use the file size in the output files to help reduce the chance of collisions.

    How to compare 2 folders with pre-existing commands/products:

    Now if you just want a program that does it, use diff -r or windiff for windows based systems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 92k
  • Answers 92k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Try dumping stderr and see if you get anything. You… May 11, 2026 at 6:32 pm
  • Editorial Team
    Editorial Team added an answer Most CMS would be able to maintain a movie database,… May 11, 2026 at 6:32 pm
  • Editorial Team
    Editorial Team added an answer Yup - inside the declaration of class Box, do friend… May 11, 2026 at 6:32 pm

Related Questions

I have a design idea for a large project at work and I think
I am in the process of designing a build system and the directory structure
Background I am working on a legacy small-business automation system (inventory, sales, procurement, etc.)
We have a MFC 8 application compiled with /CLR that contains a larger amount

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.