3

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?

7

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
1
  • 1
    I really like the „magic” put into this single line of code.
    – lgarzo
    Mar 2 '12 at 9:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.