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

I accidentally deleted some large files (10gb which is associated with Truecrypt) but I didnt empty the trash. It is inside the trash, when I run BleachBit I see them but I can't recover those files from the trash.

share|improve this question
Coupd you detail in your question what happens when you try the usual method 'Restore selected items'? – roadmr Jan 14 '12 at 15:37
Trash looks empty, 'Restore selected items' looks faded and 'Empty trash' looks highlighted. But I didnt empty it. When I delete other files they disappear but they dont show it inside the trash bin. – robin Jan 14 '12 at 16:28

Normally you'd left-click on the trashcan icon, select the file you want to restore, and click on 'Restore selected items'.

If that's not working for you, try this:

  • Open a terminal (ctrl-alt-t) Type this to go to the trash directory:

    cd .local/share/Trash/files
  • To see the files in the trash directory type:

  • If you see the file you need to restore, use the mv command to move it elsewhere in the filesystem:

    mv ~/Desktop
    • If the file has a strange name you can use quotes around it, like this:

      mv "1940's hits (rock)" ~/Desktop

    Alternatively, type mv, then the first characters of the filename (for example, 1940), then press the TAB key to get filename autocompletion, which will take care of adding necessary quoting automatically. If the generated filename has characters like \, it's OK, those are for quoting special characters.

share|improve this answer
It works but not for every file. For example when I type ls a directory name appears as "1940's Hit Songs (4 of 4) USA" and mv command doesn't recognise this file name. But it works with a file name like "" etc. – robin Jan 14 '12 at 16:44

I had the same problem and roadmr's solution didn't work for me either. Then I realized that my files were from USB. When you delete the files on some other media (e.g. USB) it does NOT go to .local/share/Trash but it goes to .Trash* directory on that device.

For example, my USB was mounted on /media/DA6B-3E12 and the files were on: /media/DA6B-3E12/.Trash-1000/files.

You can now use the mv command to restore them.

mv /media/DA6B-3E12/.Trash-1000/files/your_song.mp3 ~/Desktop
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.