Welcome, Guest. Please login or register.
April 19, 2014, 07:43:51 AM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  General topics
| | |-+  Remove Duplicate files
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Remove Duplicate files  (Read 1049 times)
jaideep_jdof
Pardus fellow craft
**
Gender: Male
Posts: 104



View Profile
« on: January 17, 2008, 19:19:02 PM »

I have a big collection of mp3s about 30 GB and I think there are some duplicate files. Is it possible to remove them. Is there any app available.
Logged
Eren.Turkay
Global Moderator
Pardus Master
*****
Posts: 262



View Profile WWW
« Reply #1 on: January 17, 2008, 19:40:36 PM »

There is a command line tool named "fdupes". However, it hasn't been packaged but you can easily compile with 1 command and use it.

Enter these commands to compile and install fdupes;
Code:
wget http://netdial.caribe.net/~adrian2/programs/fdupes-1.40.tar.gz
tar -xvf fdupes-1.40.tar.gz
cd fdupes-1.40
make
sudo cp fdupes /usr/bin
sudo chmod +x /usr/bin/fdupes

Now, fdupes is ready to use. You can see what options you can use by typing "fdupes --help". To see what files are duplicated in directory, enter;
Code:
fdupes -r /duplicated/files/directory

It will calculate and show what are duplicated, to delete it, you should add "-d" parameter but it will prompt you for every file and this is very annoying. To achieve this, you will give "1" option to everything prompted to delete 1 copy of duplicated file. Just type to delete 1 copy of duplicated file in directory;

Code:
yes 1 | fdupes -rd /duplicated/files/directory

You can also check this link; http://ubuntu.wordpress.com/2005/10/08/find-duplicate-copies-of-files/
Logged
jaideep_jdof
Pardus fellow craft
**
Gender: Male
Posts: 104



View Profile
« Reply #2 on: January 17, 2008, 19:55:44 PM »

Thanks its a good app. Should be added to the repos. It will be very useful to other users.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!