Grimoire-
Command
.es

GNU+Linux command memo

Find duplicate files (to remove them and save space)

Trouver des fichiers dupliqués pour les supprimer et libérer du stockage.

$ fdupes --delete --immediate --recurse /mnt/backup (1)
$ fslint-gui (2)
$ jdupes /srv/content --recurse: /mnt/backup (3)
1 fdupes can show a lost-space summary or automatically delete dup files. Files are found by sizes then MD5 signatures, followed by a byte-by-byte comparison (slow)
2 it’s a graphical program that can fix various file system problems, including duplicated files, findup is a command line interface version
3 will follow subdirectories under /mnt/backup, but not those under /srv/content, fork of fdupes which support this same syntax. jdupes is also coded in C, starring a good brtfs integration and is faster than fdupes as per Anaug Wanu measures.