0

How to delete the duplicate files in Linux

I need to remove some of the duplicate files in my linux machine. How to find out those files and to remove it....???

Fslint Add a comment
ryan
asked Feb 25 2017

Answer

0

To remove the duplicate files,you can use the fdupes tool

To install fdupes,use the following command

yum install fdupes

To search for the duplicate files recursively in a directory use the following command

fdupes -r /home

Use the -S option to view the duplicate files along with their sizes

fdupes -Sr /home

To preserve a copy and delete the duplicate files,use the following command

fdupes -d /home/

Add a comment
krishnakumar
asked Feb 26 2017
edited Oct 05 2018
Post your Answer