Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Fedora 17 and I generated a folder named .\data\ from code

How can I delete this file from the command line?

share|improve this question

migrated from Dec 1 '12 at 20:49

This question came from our site for professional and enthusiast programmers.

No idea why "off topic" has "tex" but no... "linux"... really? Anyway rm -rf ./data with the understanding that it is irrevocably gone. – cfeduke Dec 1 '12 at 13:42
up vote 1 down vote accepted

Use additional backslashes to escape the special characters: \.\\data\\. Hence, you would use:

rm -rf \.\\data\\
share|improve this answer

Screen each backslash with another backslash or just enclose the entire folder name in single quotes:

rm -r '.\data\'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.