Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-05-2002, 12:08 PM   #1
Registered: Dec 2001
Location: South Bend, IN
Distribution: Debian, Red Hat, LFS
Posts: 39

Rep: Reputation: 15
cruft cleanout

over time I have accrued many files (read 14g) and the collection has gotten much to large to manage by hand thanks to my own ineptitude. Does anyone know of a good script or utility that can find identical files (eg. md5 or some such + filename similarity) and delete them, that is my main problem: duplicate files.

Old 11-05-2002, 12:13 PM   #2
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
rm `find ./ -name filename`
that should do the trick. Note that the symbol before the find, and after filename is the key next to 1 (on UK keyboards). It will first find all files in the current directory and all subdirectories with the given name, and then prompt you to delete them. If you need to be more specific, or you want to remove the files without prompting, then a quick glance at the man pages for both rm and find should help.


Last edited by Thymox; 11-05-2002 at 12:15 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration