Search code examples
bashunixspecial-charactersrmbackspace

Deleting files with ^? in their name


I have a file called ^?x (thats ^? the backspace character). I have no idea how it got that way, but I need to get rid of it. Except when I try to do rm I don't really know what to type. How can I delete the file?


Solution

  • Do you have other files that end in x? If not, just rm *x will do it. If you do need to type it directly, you can use \010 which is the octal sequence for the backspace character.