Where is the trash stored in Ubuntu?

I use GNOME in Ubuntu for windows management. A few days back I deleted a directory and it got stuck in the trash can. I mean literally. I could not permanently remove it from trash. It was one of those directories which had files whose permissions did not allow me to remove it.

I  was then looking to see where the trash is stored and finally found it lurking in my home directory under

 ./.local/share/Trash

I used the following find command to find it:

find . -name Trash -print

The actual trashed files/directories are located under

 ./local/share/Trash/files.

Once, I found this out, I was able to remove it permanently with:

sudo rm -r <dir-to-be-removed-permanently>

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.