CentOS 7.x fdupes

From Notes_Wiki
Revision as of 09:52, 25 August 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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