Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-13-2010, 07:04 PM   #1
LQ Newbie
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
How to remove multiple Photorec files (recup_dir.)

I was doing some data recovery with Photorec and by the time I was done I have over 700 folders (recup_dir.).
The only solution I was able to apply was the one posted by pljvaldez on
this site dated 04-09-08, 09:01 AM. After doing the same thing for at least 70 times I decided to ask, so, is there anyone that knows how to delete multiple folders at the same time. I would really appreciate some help.

Thank you for your time...

Old 01-13-2010, 08:12 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 269Reputation: 269Reputation: 269
You can remove directories by doing rm -rf recup_dir* which means remove recursively forced all directories that start with recup_dir.

Be very very careful when using rm -rf as you can do some serious damage to your system. If you want, do rm -irf recup_dir* and it will prompt you to delete each directory that begins with "recup_dir".
Old 01-14-2010, 01:12 PM   #3
LQ Newbie
Registered: Jan 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you.

Thank you very much it worked, thank you...



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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhotoRec completely filled home - can not remove the recup_dir.# directories Herbivore Linux - Newbie 3 06-03-2013 01:47 PM
Bash script to find and remove similar lines from multiple files linuxquestion1 Programming 9 07-13-2011 02:45 AM
LXer: Recover deleted files in linux with Photorec LXer Syndicated Linux News 0 10-12-2009 10:41 AM
recover directories & files from ext. HDD using testdisk or photorec esteeven Linux - Hardware 1 11-13-2008 11:48 AM
remove multiple files with whitespace coldy78 Linux - General 1 12-10-2007 03:23 AM

All times are GMT -5. The time now is 01:23 AM.

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