Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Dec 1 '12 at 20:49

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

1  
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
add comment

2 Answers

up vote 0 down vote accepted

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

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

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

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

Your Answer

 
discard

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.