|
Hello everyone, today we will learn how to find and delete duplicate files on a Linux PC or server. There is a tool that you can use the tool to their own needs.
Whether you are using Linux on the desktop or server, there are some good tools to help you scan the system for duplicate files and remove them to free up space. Graphical interface and command line interface has. Duplicate files is an unnecessary waste of disk space. After all, if you really need to enjoy the same file in a different location, you can use a soft link or hard link, so you can place the data in one of the storage disk.
FSlint
FSlint in various Linux distributions in binary repository has, including Ubuntu, Debian, Fedora and Red Hat. You just run your package manager and install "fslint" package on the line. The default tool provides a simple graphical interface, there are also a command line version contains various functions.
Do not worry FSlint graphical interface is too complex. By default, it will automatically select Duplicate pane, and your home directory as the search path.
To install fslint, if like me you are running Ubuntu, here is the default command:
$ Sudo apt-get install fslint
There is also a release for other installation command:
Debian:
svn checkout http://fslint.googlecode.com/svn/trunk/ fslint-2.45
cd fslint-2.45
dpkg-buildpackage -I.svn -rfakeroot -tc
sudo 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 = packages
wget http://www.pixelbeat.org/fslint/fslint-2.42.tar.gz
sudo rpmbuild -ta fslint-2.42.tar.gz
sudo 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.gz
tar -xzf fslint-2.44.tar.gz
cd fslint-2.44
(Cd po && make)
./fslint-gui
Ubuntu To run the GUI version fslint fslint-gui, use Alt + F2 run command or enter in a terminal:
$ Fslint-gui
By default, it will automatically select Duplicate pane, and your home directory as the search path. You have to do is click on the Find button, FSlint automatically in your home directory to find duplicate files list.
Click the button to delete any files you want to delete, and you can double-click preview.
After the completion of all this, we have successfully remove duplicate files on your system up.
Note that the path is not the default command-line tool environment, you can not run it like a typical command that. In Ubuntu, you can / fslint locate it in / usr / share / fslint. So, if you want to run a separate directory fslint a complete scan, the following is the Ubuntu run the command:
cd / usr / share / fslint / fslint
./fslint / path / to / directory
This command does not actually delete any files. It will print out a list of duplicate files - you need to do it yourself the next thing.
$ / Usr / share / fslint / fslint / findup --help
find dUPlicate files.
Usage: findup [[[-t [-m | -d]] | [- summary]] [- r] [- f] paths (s) ...]
Ifno path (s) specified then the current directory is assumed.
When-m is specified any found duplicates will be merged (using hardlinks).
When-d is specified any found duplicates will be deleted (leaving just 1).
When-t is specfied, only report what -m or-d would do.
When - summary is specified change output format to include file sizes.
You can also pipe this summary format to / usr / share / fslint / fslint / fstool / dupwaste
to get a total of the wastage due to duplicates. |
|
|
|