Difference between revisions of "CentOS 7.x fdupes"

From Notes_Wiki
(Created page with "<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...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb>CentOS_7.x_Desktop_tools_or_applications|Desktop tools or applications</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Desktop tools or applications|Desktop tools or applications]] > [[CentOS 7.x fdupes]]
=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:
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:
Line 18: Line 17:


Avoid -m as it only prints summary and not any useful details.
Avoid -m as it only prints summary and not any useful details.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Desktop tools or applications|Desktop tools or applications]] > [[CentOS 7.x fdupes]]

Latest revision as of 09:52, 25 August 2022

Home > CentOS > CentOS 7.x > Desktop tools or applications > 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:

  1. Install fdupes package:
    yum -y install fdupes
  2. 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.



Home > CentOS > CentOS 7.x > Desktop tools or applications > CentOS 7.x fdupes