Ubuntu – how to delete locked folders/files

deletedirectoryfiles

How to delete locked folders/files? When I try to delete them an error occurs: "Error removing file: Permission denied" I am root. See the image below to know what kind of folders/files.

enter image description here

thanks

Best Answer

Launch your file explorer as root using:

gksudo nautilus

This will open your file explorer, and grant it root, so it should be able to view/delete the directory/file.

If you are like me, and don't care about the warnings in this question you can use this instead:

sudo nautilus
Related Question