CentOS 7.x fdupes
From Notes_Wiki
<yambe:breadcrumb>CentOS_7.x_Desktop_tools_or_applications|Desktop tools or applications</yambe:breadcrumb>
CentOS 7.x fdupes
If there are file sharing services such as NFS, CIFS/Samba/Windows file sharing, Owncloud etc. then space can be wasted when same file is stored at multiple locations. This can be due to multiple users, or sometimes accidentally copying files while using file browsers. To find such duplicate files use:
- Install fdupes package:
- yum -y install fdupes
- Run fupes to find duplicates:
- fdupes -r -n -S -q . > /root/fdupes.txt 2>&1 &
- Here,
- -r
- For recursively searching folders, in this case dot(.) or current folder
- -n
- To ignore empty files and not treat them as duplicates of other empty files
- -S
- : To report size of duplicate files found
- -q
- : To avoid progress report generation
Avoid -m as it only prints summary and not any useful details.