How To Find And Delete Duplicate Files In Linux

Find And Delete Duplicate Files

5 Responses

  1. Giulio says:

    dupeguru imho is easier.

  2. Bert van der Genugten says:

    Thank you for sharing this.

    What I’m looking for is a tool to identify whole directories which are duplicate (recursive). So it would match two folders if their contents are the same. This way it would be a lot less work (compared to removing each individual file by hand). Do you know of such a tool? Or are any of the ones you listed capable of this feature?

    Thanks!

    • sk says:

      Have you tried “diff” command? I guess it is what you’re looking for. diff command comes pre-installed on most Linux distros.

    • jdc says:

      If you want GUI for directory comparison, maybe look at “FreeFileSync.” Not sure your exact need, but it came to mind first. It was in the repository of one distro I use, but not others, but it is opensource and you can download and compile. Other GUI-driven solutions I also use are Meld and Kdiff3 but I tend to use them for single-layer directory comparison (not recursive searching, though they can do that) and use FreeFileSync for looking at whole “tree.”

      The above **ARE** GUI tools. I do like CLI and use it quite a bit, but with large directories with multiple subdirectories on my personal system/ home network, I like the graphical approach. If CLI is your thing, “diff” as per sk’s comment, is good too. Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.