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 fslintThere 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.debFedora:
sudo yum install fslintOpenSUSE:
[ -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.rpmFor 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-guiTo run the GUI version of fslint in Ubuntu Fslint-gui, use Alt+F2 to run the command or type in the terminal:
$ fslint-guiBy 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/directoryThis 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
One of the best things about Linux is that you can go deep into the operating system to explore how
1. Get root privileges without logging in. If you dont set GRUB password, then we can use the easie
Or from the process of compiling the link to generate vmlinux, it is made up of a bunch of .o files
How do I view all running processes in Linux? You can use the ps command. It can
Parse the Linux root file system mount process
Detailed Linux system startup process and system initialization
Bridge implementation of the linux protocol stack (from the bridge configuration (2))
The difference between linux system calls and library function calls
Linux newbie tutorial: teach you how to mount the hard disk
2000 and Linux dual system installation
Linux system (Debian and Ubuntu) completely remove wine
Self-made Linux Pinyin Wubi input method
The difference between the init function and the init process is
Nfs optimization configuration test tutorial
Rookie Classroom: Several programming languages under Linux that are ignored
Come pick bones from the eggs of Windows 7
Win8 can't play LOL games how to do
IBM System x3610 Server Frequently Asked Questions and Answers
Don't forget the disk fragmentation analysis report
Win7, Win8 system start black screen error 0xc000025 solution
Win 7 start menu input command to start various programs
Microsoft accelerates Win10 Mobile push frequency is testing new preview version
How does win7 system convert disk format to NTFS
Windows Blue will increase market demand for touch screen devices
Win8.1 point to the shutdown button but restart the solution