Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 4 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:
    ~/.local/share/Trash/

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

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

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
add comment

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

According to a Google Search anyway...

share|improve this answer
add comment

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.