# How to find redundant or duplicate files

Here's the situation: you have stored years worth of backups and copies of your working folders.  So far so good.  But unfortunately you are not very systematic so you've created a mess.  Some things are missing and other things have three or more copies of the same file! &#x20;

But there are two useful things BC can do for you.&#x20;

### Look closely at a pair of folders in the tree

Using your mouse, drag both directories onto the BC window.  Hit the *expand* button.  Whoa, these backup files on the right are a mess.  The files are named "a" through "i"

![](https://1446155253-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXUX-uoaZJ8T4qyEc-x%2F-LX_hz0lItdxRB5ylBfH%2F-LX_iW_oCk4oCKaHL-aP%2Fa.png?alt=media\&token=9f61b970-5f94-4c19-ae9c-d745a0d6c059)

If we want to examine foo and bar, we rightclick them and choose `set as base folder`.

![](https://1446155253-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXUX-uoaZJ8T4qyEc-x%2F-LX_j0-Fdtlh3vAmS6zZ%2F-LX_jvmWLzT_eOf-Gxdf%2Fc.png?alt=media\&token=85bb3231-0a9c-4ee7-b4e9-562ff8c7ed14)

### Flatten the entire tree, ignoring folders, showing all files

This option shows all the files, no matter how deeply buried.  You can sort the flattened tree by date, size, and rightclick each file for a context menu.  The screenshot here tells us four things:

* the equals signs in the middle, with the 0111 symbol are telling us that byte for byte, the contents are identical in this pair of files
* the directory on the right has doubles of almost everything
* the directory on the left has *no copies* of file "i".
* the path of each file is listed

Unfortunately, this is the end of the road. Beyond Compare is the wrong tool for *thoroughly* dealing with redundant files.  If you want to methodically solve redundancy issues in backups that you have already made, search online for *duplicate file finder software*.  &#x20;

![...](https://1446155253-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LXUX-uoaZJ8T4qyEc-x%2F-LX_hz0lItdxRB5ylBfH%2F-LX_ifJH9lr8M7sHm_4G%2Fb.png?alt=media\&token=08aedf43-1487-474a-b2b4-241551c8a487)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://beyondcompare.gitbook.io/project/other/how-to-find-redundant-or-duplicate-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
