How to use FSlint to find and delete duplicate files on Linux

  
 

Today we will learn how to find and remove duplicate files on a Linux PC or server. Here is a tool you can use for your own needs.

Whether you are using a Linux desktop or server, there are some great tools that can help you scan duplicate files on your system and delete them to free up space. Both the graphical interface and the command line interface. Duplicate files are an unnecessary waste of disk space. After all, if you really need to have the same file in different locations, you can use a soft link or a hard link so that you can store data in one place on the disk.

FSlint

FSlint is available in different Linux distribution binaries, including Ubuntu, Debian, Fedora, and Red Hat. Just run your package manager and install the “fslint” package. This tool provides a simple graphical interface by default, as well as a command-line version with various features.

Don't worry about FSlint's graphical interface being too complicated. By default, it automatically selects the Duplicate pane and uses your home directory as the search path.

To install fslint, if you are running Ubuntu like this, here is the default command:

$ sudo apt-get install fslint

There are also installations for other distributions. Command:

Debian:

svn checkout http://fslint.googlecode.com/svn/trunk/fslint-2.45cd fslint-2.45dpkg-buildpackage -I.svn -rfakeroot -tcsudo Dpkg -i ../fslint_2.45-1_all.deb

Fedora:

sudo yum install fslint

OpenSUSE:

[ -f /etc/mandrake-release ] & ;& pkg=rpm[ -f /etc/SuSE-release ] && pkg=packageswget http://www.pixelbeat.org/fslint/fslint-2.42.tar.gzsudo rpmbuild -ta fslint-2.42.tar .gzsudo rpm -Uvh /usr/src/$pkg/RPMS/noarch/fslint-2.42-1.*.noarch.rpm

For other distributions:

wget http://www.pixelbeat .org/fslint/fslint-2.44.tar.gztar -xzf fslint-2.44.tar.gzcd fslint-2.44(cd po && make)./fslint-gui

To run the GUI version of fslint in Ubuntu Fslint-gui, use Alt+F2 to run the command or type in the terminal:

$ fslint-gui

By default, it will Select Duplicate pane, and to your home directory as the search path. All you have to do is click on the Find button and FSlint will automatically find a list of duplicate files in your home directory.


Click the button to delete any files you want to delete, and double-click to preview.

After all this, we successfully deleted the duplicate files in your system.

Note that the command line tool is not in the environment path by default, you can't run it like a typical command. In Ubuntu, you can find it under /usr/share/fslint/fslint. Therefore, if you want to run a full fslint scan in a separate directory, here is the run command in Ubuntu:

cd /usr/share/fslint/fslint./fslint /path/to/directory

This command does not actually delete any files. It will only print out a list of duplicate files - you need to do the next thing yourself.

$ /usr/share/fslint/fslint/findup --helpfind dUPlicate files.Usage: findup [[[-t [-m
						
Copyright © Windows knowledge All Rights Reserved