0

I have leftovers of PyLotRO, a Windows emulator, but I can't move all files to the trash bin.

How do I change permissions and delete them?

0

Determine where the folder is and in terminal type the following

sudo chmod -R 777 /path/to/folder/foldername

Then press enter. for example if the folder was called BLAH and was located at /home/user/BLAH then you would type

sudo chmod -R 777 /home/user/BLAH 

That should change the permissions for the folder and all its files and sub directories to read/write/execute .. then you should be able to delete them. Also be aware that Linux is case sensitive so you do have to use a capital -R in the line and if your directory has caps you have to use caps the exact same way it show or it will fail

UPDATED ANSWER Since you said you can find the folder in terminal you can use this command

sudo rm -rf /path/to/folder/foldername

That will delete the folder and its subdirectories as root.

it will ask you for a password and when you type it in it will look like nothing is happening .. it doesn't show any indication that you are typing it in .. just type the password and press enter and it will delete the files for you

  • Didn't work says cant find file or carpet/directory – Pablo May 7 '16 at 15:54
  • well you have to use the path to your directory .. i dont know what that is so i put an example as to how to do it. – John Orion May 7 '16 at 16:16
  • It worked, after trying chmod -r 777 while on file (clicked to see file location on terminal) – Pablo May 9 '16 at 15:51
0

If you wanted to use your GUI file manager (nautilus, thunar, caja, dolphin, etc) you could use the "root account" to delete the files.

Most file managers probably have an "Open Folder as Root" or similar option, or just run the file manager with sudo (, from a terminal would work.

For thunar: sudo thunar. Or for nautilus: sudo nautilus , etc

If you're using nautilus, the answers here should help: How do I open a folder as root?

Then browse to the offending files and delete them.

In a terminal, just sudo rm should work too

  • Doesnt work for me, no option for root access. I can put the file location in the terminal though any use? – Pablo May 7 '16 at 15:53
  • 1
    What happens when you open a terminal and type sudo nautilus ? That should open nautilus with root permissions. Then you can go to the folder containing those files and delete them. – user533208 May 7 '16 at 16:27
0

Having all permissions as a root, you should use:

sudo -i

And for completely removing files or folders and their contents, you can use:

rm

For obtaining more information about these commands (and other commands!) you can use:

man

For example,

man rm

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.