Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've tried using sudo rm -rf ~/.local/share/Trash/files/ and even going myself as root doing the same, and recreating the folder its still there, it was from a pendrive at one point and I deleted it but now I cant get it to delete permanently.

Anyone have any suggestions?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

Apart the user trash, there could be a trash for every mounted filesystem.
Run the following command to see:

mount | awk '$1 ~ /^\// {print $3}' | while read dir; do find "$dir"/.Trash* 2>&-; done
share|improve this answer
1  
I really like the „magic” put into this single line of code. –  lgarzo Mar 2 '12 at 9:45

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.