LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-05-2002, 12:08 PM   #1
rsbecker007
Member
 
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.

thanks
 
Old 11-05-2002, 12:13 PM   #2
Thymox
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.

HTH

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


Reply


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




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

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