LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 11:08 AM   #1
rsbecker007
Member
 
Registered: Dec 2001
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, 11:13 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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 11:15 AM.
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:06 AM.

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
Open Source Consulting | Domain Registration