Skip to main content

Find and remove duplicate files in Ubuntu / Mint Linux

If you have accumulated thousands of files , some times you will have more than one versions of same file. If you use Ubuntu of Mint linux you can find and remove these duplicates very easily.

There are two popular tools for this fdupes and fslint

Using fdubes

ftubes is the most popular, simple and powerful tool to find duplicates and remove them. It is a command line tool so if you don't like command line move to next heading. It compares file size  and MD5 signatures(Do not worry if you don't know what it is). So it will find duplicates even if they have different names.

Installation

From terminal execute following command 

sudo apt-get install fdupes

ftubes Syntax

fdupes [options] directory

where  options available are









-r --recurse
include files residing in subdirectories
-s --symlinks
follow symlinked directories
-H --hardlinks
normally, when two or more files point to the same disk area they are treated as non-duplicates; this option will change this behavior
-n --noempty
exclude zero-length files from consideration
-f --omitfirst
omit the first file in each set of matches
-1 --sameline
list each set of matches on a single line
-S --size
show size of duplicate files
-q --quiet
hide progress indicator
-d --delete
prompt user for files to preserve, deleting all others 
-v --version
display fdupes version
-h --help
displays help

directory is the path where you want to find duplicates

Examples

Let suppose that we have a music directory in current directory
See a list of duplicates 
fdupes music/

To find duplicates in subdirectories recursively
fdupes -r music/

To see file size in file list
fdupes -r -S music/

To delete files one by one on each duplicate. It will prompt for each set of duplicates
fdupes -r -S -d music/

Thats it. Comment if you need any other help.

fslint

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.

Installation

From your terminal execute this command
sudo apt-get install fslint

Done!

Use

Start fslint from menu command line 
It will start UI interface like given below.  You can change the search directory and set required options and you are ready to go. Press Find button.
FSLint Tutorial- Find and remove duplicates in Ubuntu / Mint Linux


It will take some time if directory is veyr large. When done it will provide list of duplicates and options to delete, merge or save those duplicate files.



That's it. Help other clean duplicates by sharing this and feel free to comment if you have a specific problem. 

Comments

  1. Nice and helpful post for the people who are in this trouble. I am using DuplicateFilesDeleter that is so easy and reliable. Hope everyone can use it properly.

    ReplyDelete
    Replies
    1. I truly like to reading your post. Thank you so much for taking the time to share such a nice information. I'll definitely add this great post in my article section.
      Read More: Best iPhone App Development Company in Jaipur
      Best Android App Development Company in Jaipur

      Delete
  2. I found your blog while searching for the updates, I am happy to be here. Very useful content and also easily understandable providing..
    Believe me I did wrote an post about tutorials for beginners with reference of your blog. 




    Selenium training in bangalore
    Selenium training in Chennai
    Selenium training in Bangalore
    Selenium training in Pune
    Selenium Online training

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Jayam constructions is one of leading smallscale construction company in chennai .We ultimately focus on middle class and upper middle class people who having dream to buy house with low budget based on their needs.Our business mantra is "sincerity ,quality and service" and also our buildings are incorporated with branded under ISI marked and are quality certified.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. The Asian Publications, is a book publishing company in Chennai. We specialize in publishing Limited Edition Antiquarian Reprints of books.

    A set of categories we are dealing with are,

    - Dictionaries, Grammars, Inscriptions, Architecture, Numismatics
    - Palaeography, Literature in most Indian and Asian Language
    - Mythology, Folklore, Customs and Manners
    - History, Travel, Culture, Art, Archaeology

    Over the years most of the titles are out of print, so we are bringing out the most important titles on India especially on South India. So far we have reprinted and published about 40 titles.

    Best selling books are

    1. Abithana Chintamani - A. Singaravelu Mudaliar
    2. A Forgotten Empire (Vijayanagar) - Robert Sewell
    3. The Madura Country A Manual - J.H. Nelson

    We are periodically updating the list of our books here - Book List

    For more details, you can call or mail us - Contact

    Thank you

    ReplyDelete
  9. Without a doubt, technology is all around us. Technology is a major part of our everyday lives and it is hard to imagine living in a society that does not have advanced technology. The affect that the current technological advances continue to have on our lives grows more positive with every new "thing" that comes out. spy phone app

    ReplyDelete
  10. The United Kingdom is in the process of investing a huge amount of money in new waste management facilities now and over the next five years. However, much of the money is going into incineration schemes to divert biodegradable municipal waste (BMW) away from landfills, after a high degree of sorting and recycling. Many have been critical of that trend. The new waste technologies should be an option to replace incineration, but are only feasible after considering the difficulties faced by waste managers in promoting the new technology alternatives. Read this article to understand why! spycamera.com

    ReplyDelete
  11. I’d been honored to receive a call from my friend as soon as he discovered the important recommendations shared on your site. Going through your blog posting is a real fantastic experience. Thank you for taking into account readers like me, and I desire for you the best of achievements for a professional surface area. 토토사이트

    ReplyDelete
  12. Technology is the leader of the enterprising world. And it leads using a constitution. Unlike the traditional political structure, this constitution is Algorithms written by engineers, scientists, etc and not congressmen and politicians. route planning software

    ReplyDelete
  13. Adopting new technology at a work site can be very challenging. There is an expectation that healthcare providers adopt new software, including electronic health records. This article demonstrates processes to make adoption of such technology and software easier. best xmind competitor

    ReplyDelete
  14. Check latest bikes, motorcycle prices in Bangladesh 2021 at bikesbd.net bikes

    ReplyDelete
  15. Below are three things to help you avoid making a mistake. By taking a few simple precautions you can increase the chance of getting a good vehicle that will serve you well for years to come. vehicle check

    ReplyDelete
  16. Our the purpose is to share the reviews about the latest
    Download Roblox Mod

    ReplyDelete
  17. Thanks for shearing this kind of information clone

    ReplyDelete
  18. thanks for sharing these commands ,these are very useful

    ReplyDelete

Post a Comment

Popular posts from this blog

How to add JCalendar/ date chooser to WindowBuilder, for Swing GUI in Java?

WindowBuilder is most popular eclipse plugin for drag and drop GUI design. It supports SWT and Swing. Swing does not have a date chooser component of its own. But there are many components available that you can use. My personal favourite is JCalendar . You can add JCalendar components to your WindowBuilder  palette  by following these instructions. Download and extract JCalendar.  Right-click on the palette   in WindowBuilder Select jar file of Jcalendar select all componetnts Restart Eclipse. Now you will see JCalendar components in your  palette . For more information about  visit this page.  

Why use shopify?

Are you looking to setup an online store? You can setup your store and you can start selling in a week. There are many platforms available to use but Shopify is easiest, reliable and SEO friendly.   Not familiar with Shopify ? It is a great way to sell tour products, without worrying about managing a server, payment gateways, etc. as for a small monthly fee everything is included.  Click here to create a free trial store and start exploring.