in

How to Find and Clean up Duplicate Files in Ubuntu Linux

- - 6 comments
If you are like me who have accumulated thousands of audio, movies, and other files over the years, it is not unusual to have tons and tons of duplicate contents that are scattered throughout the hard drive. Even though our storage devices are getting bigger, those duplicate files are still a waste of space. So what should you do with them? Should you manually find those files and clean them up one by one. Well, that's not necessary because there's a good utility that can help you in searching and cleaning duplicate files and more.

The program that you will have to install is called FsLint (Filesystem Lint). It has both a GUI as well as a command line interface. Aside from finding duplicate files, FsLint is also capable of searching for problematic filenames, temporary files, bad symlinks, empty directories and non-stripped binaries. So let me show you how to install and use FsLint.

In Ubuntu, you can install FsLint using Synaptic Package Manager or via the command line:

sudo apt-get install fslint

After installing FsLint, you can find it at Applications-->System Tools-->FsLint.

FsLint has a simple GUI. By default, the search path is your home directory but you can add other directories or use the “Advanced search parameters” as well.


Once you've added the search path, simply click on the "Find" button and the program will immediately start looking for duplicate files and others mentioned above. After the searching is done, the names and directories with issues are displayed. You are then given options to save, delete, or merge those duplicate files.


That’s about it. Now go on and start cleaning those duplicates files.

6 comments

  1. Why just Ubuntu? fslint is not a distro-specific tool.

    ReplyDelete
  2. should i just delete everything fslint finds?

    ReplyDelete
  3. Why Ubuntu? Why not? Dunlop tires are not Suzuki-specific, but you may have an article saying how good Dunlop works with Suzuki... or something :)
    Cheers

    ReplyDelete
  4. nice tool, I like the ability to hardlink identical files!

    ReplyDelete
  5. does it do a name of file comparison or a diff, that is a byte compare.

    ReplyDelete
  6. An alternative is fdupes:

    > sudo apt-get install fdupes
    > fdupes -r /home/user/pictures1 /home/user/pictures2 > dupes.txt

    ReplyDelete