Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A folder was created when I used a utility to recover pictures from a cd card that I deleted by mistake.

Now I can't delete it or move it. I am told I am not the owner of it even when I am logged on as root.

How can I delete the recup_dir.1 folder from my machine?

share|improve this question

When logged in as root open up a terminal, the command you should use is rm -rf ./recup_dir.1

share|improve this answer
Copied rm -rf ./recup_dir.1 from your post and entered it into a terminal and this was the output. – Bob Brazie Feb 4 '12 at 23:05
Sorry about that. <g> bob@bob-HP:~$ rm -rf ./recup_dir.1 The folder is still locked and I can not delete it. – Bob Brazie Feb 4 '12 at 23:06

I found this on launchpad and it answered my question. Thanks for the hilp.

I am not completely sure where these files are coming from, but (middle part of the page) indicates that they might be reconstructed picture files from the PhotoRec program (part of the testdisk package).

It seems they have been created in a way that they are owend by 'root', and you do not have access rights to look at them. To overcome that restriction you can do the following:

Open a terminal (Applications -> Accessories -> Terminal, or press ALT+F2, or press Ctrl+Alt+T) and in the window that opens enter "gksudo nautilus" (without the quotes). This will ask for your password and open a new file browser window with access rights as if logged in as root.

Now you should be able to browse all files.

Please use extreme caution when using this technique, because in that window the restrictions imposed on a 'normal user' (like: no rights to delete important system files) are temporarily overridden.

share|improve this answer
If you found an answer, you should mark it as Answer. See… – Olli Feb 3 '14 at 18:13

sudo rm -rf recup_dir* This command will delete all dir begin with recup.

share|improve this answer
sudo rm -r /home/elrafie/recup_dir.1
sudo rm -r /home/elrafie/recup_dir.2
share|improve this answer
sudo rm -r /home/elrafie/recup_dir.*
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.