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?

Upvotes: 0

Views: 65

Answers (1)

Carl Norum
Carl Norum

Reputation: 225212

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.

Upvotes: 3

Related Questions