1

By mistake I made a file with the name \. How do you delete something like that? I've tried rm --\ rm "\" rm -- -\and nothing seems to work. I bet it's so simple but I'm stumbled - any suggestions?

secure212
  • 228
  • 1
  • 3
  • 10

1 Answers1

1

I'm assuming it's a single character, just a backslash.

try:

rm -- \\

Also, at worst, use tab completion. bash/zsh will put in escape characters where necessary.

etherfish
  • 1,757
  • 10
  • 12