Can someone please tell me how to empty my waste bin when there is a protected file inside? I’ve tried a few different ideas but nothing has worked yet. The file inside had different permissions and thus, I can’t delete it. Is there is a SU command in terminal I can use?
Hmmm, you are probably logged in as root, and that is root’s trash. Do NOT login as root to desktop session. Just log in with your own user, and run your file manager in super user mode as caf4926 said. How to do that under Gnome… I have no idea
Here is the answer: file manager super user - Ubuntu Forums.
User’s trash folder is under ~/.local/share/Trash
Good luck
I tried running nautilus in su from the terminal but it didn’t show any files in the trash? I’m also logged in as a normal user. Isn’t there a simple command in the terminal that I can run from su and execute?
and not just “rm”.
-r stays for recursive, it will remove you the folders too.
I you are following malcolmlewis’s post then add the -r after every rm.
Good luck