Поиск дубликатов

Кончилось место на диске, а из полуторатерабайтного харда у меня давно уже получилась замечательная помойка, пытался найти место разными способами, но все это долго и муторно, в конце концов решил поиска софтину, что бы дубликаты нашла и удалила.

Собрался было гуглить, но лоя начала сделал поиск по манам установленного софта. Если кто не в курсе это делается командой apropos:

serp@citadel:~$ apropos find
bogotune (1)         — find optimum parameter settings for bogofilter
bogotune-bdb (1)     — find optimum parameter settings for bogofilter
chkdupexe (1)        — find duplicate executables
fdupes (1)           — finds duplicate files in a given set of directories
ffs (3)              — find first bit set in a word
ffsl (3)             — find first bit set in a word
ffsll (3)            — find first bit set in a word
find (1)             — search for files in a directory hierarchy
find2perl (1)        — translate find command lines to Perl code
couchdb (1)          — Apache CouchDB database server
findfs (8)           — Find a filesystem by label or UUID
findsmb (1)          — list info about machines that respond to SMB name queries on a subnet
glob (3)             — find pathnames matching a pattern, free memory from glob()
globfree (3)         — find pathnames matching a pattern, free memory from glob()
gst-typefind-0.10 (1) — print MIME type of file
hal-find-by-capability (1) — find device objects by capability matching
hal-find-by-property (1) — find device objects by property matching
lfind (3)            — linear search of an array
locate (1)           — find files by name
mlocate (1)          — find files by name
mysql_find_rows (1)  — extract SQL statements from files
oldfind (1)          — search for files in a directory hierarchy
pidof (8)            — find the process ID of a running program.
sane-find-scanner (1) — find SCSI and USB scanners and their device files
tfind (3)            — manage a binary tree
ttyslot (3)          — find the slot of the current user’s terminal in some file
XFindContext (3)     — associative look-up routines
XkbFindOverlayForKey (3) — Find the alternate name by using the primary name for a key that is part of an overlay
XkbGetControls (3)   — Finds the current state of Xkb server controls
XkbKeycodeToKeysym (3) — Finds the keysym bound to a particular key at a specified group and shift level
XkbKeysymToModifiers (3) — Finds the set of modifiers bound to a particular keysym on the core keyboard
XkbLookupKeyBinding (3) — Find the string bound to a key by XRebindKeySym
XkbLookupKeySym (3)  — Find the symbol associated with a key for a particular state
XkbTranslateKeySym (3) — Find the string and symbol associated with a keysym for a given keyboard state

о чудо!
нашлась простецкая консольная тулза — fdupes.
Как выяснилось позже, ищет она, сравнивая md5 суммы файлов, т.е. долго, но однозначно верно. Не важно какое у файла имя, и все такой прочее.

Пишем: fdupes -r -d /путь/к/директории/где/искать
и ждем пока она чистит нам место

Добавить комментарий

Войти с помощью: