I've made a crawler in PHP that crawls a certain website. It's kind of a proxy/crawler.

So it can get pretty messy some times and it ended up creating a folder called:

ky-right">                          <

And since it contains so many weird characters, it's hard to remove.

I've tried to cd, write ky and tab, but it doesn't auto enter the rest of the folder. Else than that, I've tried these commands, but they seem to only work on files, rather than folders:

sudo rm -- ky-right\"\>\ \ \ \<
sudo rm -- 'ky-right">????? ????<'
sudo rm -i -- ky-ri

The folder is located in /media/storagedrive/database/, and under that folder, lies over 300'000 files. So I'm really afraid of deleting it all.

Is it some kind of command that can delete and find folder that includes "ky-right" or something?


Try this :

rmdir ./ky

then type tab until it selects the whole directory name. Or type this if you know what you're doing :

rm -rf ./ky*
  • Thanks a lot. First I forgot to sudo first, and it outputted a whole lot more of what I saw. The folder had 771 characters. – Typewar Apr 21 '17 at 13:48

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.