Bash – How to delete a file named “°” in bash

bashfilenameslinux

I've accidentally created a file named °. Now I'm having trouble deleting it with bash.

[/opt/etc/sudoers.d] # ls -l
-r--r-----    1 admin    administ       21 Feb  3 23:54 010-root
-rw-r--r--    1 admin    administ       20 Feb  3 23:50 °

Typing rm ° seems to only move the caret to the beginning of the line, i.e. no character is entered.

(For what it's worth I'm running bash 3.2.0 on a remote machine conntected with SSH using Mac OSX Terminal)

Any ideas?

Best Answer

How about?

rm -i ?

I think this should work...

Related Question