Skip to main content
2 of 2
edited body; edited tags
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 265

Delete folder with invalid character (-encoding)

On my Linux Mint 18.3 installation I had troubles with my locale setting which caused the generation of a folder that has invalid encoding in its name.

I would now like to delete said folder but I can't figure out how I can do so. I tried using my file manager (Dolphin) as well as the terminal (sudo rmdir <folder name>) but both commands failed claiming that the given folder doesn't exist.

However, it still gets displayed in the file manager and via the ls command.

sudo rmdir Einf�hrung in die Biochemie/
rmdir: failed to remove 'Einf�hrung': No such file or directory
rmdir: failed to remove 'in': No such file or directory
rmdir: failed to remove 'die': No such file or directory
rmdir: failed to remove 'Biochemie/': No such file or directory

The name of the directory was copied from the output of ls.

Raven
  • 843
  • 12
  • 30