Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Using Ubuntu 11.10, I accidentally deleted a file that was approximately 700 MB. I tried to find it in the in following locations, but couldn't:

/home/user/.local/share
/home/user/ <-- there was no folder .Trash
/home/user/Desktop/ <-- there was no folder .Trash

So where did .Trash go in Ubuntu 11.10 onward? I use the Gnome environment.

share|improve this question
up vote 97 down vote accepted

The trash folder is found at: /home/username/.local/share/Trash

To see .local in your home folder using the file manager, go to View -> Show Hidden Files or just type: Ctrl+H.

If you deleted something as root (e.g. deleted a file using Nautilus invoked via gksu), it is at: /root/.local/share/Trash

A Trash folder is first created when a user deletes a file. Within that folder are three directories: files, where the deleted files are stored until the trash is emptied; info, which stores information on where the files once were and when they were deleted; and expunged, to which files are briefly moved when the trash is emptied (but may contain some owned by other users from directories you deleted).

Note that using the rm command or hitting Shift+Delete will permanently delete your file and not send it to a trash folder.

share|improve this answer
2  
If using command line to mv something to the Trash, you may need to put it in Trash/files/ rather than just Trash/. The files did not appear in the Trash GUI until I did that. – AlexMA Jun 6 '14 at 16:50
    
Yes; I added some info to address this. – Aibara Iduas Jun 9 '14 at 23:29
    
The locations still apply in 14.04 – Elder Geek Dec 3 '15 at 18:57

The trash folder is located at .local/share/Trash in your home directory.

Additionally, on other disk partitions or on removable media it will be a directory .Trash-uid where uid is the uid of the user who moved the item to the trash.

share|improve this answer
    
I cannot see this folder in my home directory. i am using ubuntu 14 – Vivek Jun 7 at 19:21
    
@Vivek Files and directories whose names start with a dot (.) are hidden by default. In Nautilus, you can press CTRL+H to show them. – Eric Carvalho Jun 7 at 20:40

Ubuntu 10.10 (oneiric)

Gnome 3.2.1 Classic

Home Folder > Go > Rubbish Bin

share|improve this answer

Your Answer

 
discard

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.