Super User is a question and answer site for computer enthusiasts and power users. 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 run Nautilus as root to access folders like /var/www. I now deleted a file by pressing the del key and was wondering where I can find the trash to really have it removed completely?

OS: Ubuntu 11.04

share|improve this question
up vote 5 down vote accepted

Short version: Open trash:// in Nautilus. You don't need to know where it is located physically; just use "Empty Trash".

Longer version:

  • If the file was on the same filesystem as your (root's) home directory:

  • If it was on a separate filesystem, and <rootdir>/.Trash/ exists and is mode 01777:

  • If it was on a separate filesystem, but <rootdir>/.Trash/ doesn't exist or has wrong permissions:

Here, <rootdir> is the root directory of that filesystem. In this case, it's /, so simply /.Trash and /.Trash-<uid>/.

<uid> is the user ID – in this case, 0 for root.

So the directory you are looking for is /root/.local/share/Trash/.

share|improve this answer

The root trash is apparently here: /root/.Trash

According to a Google Search anyway...

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .