18
2
Possible Duplicates:
How do I delete a file named "-p" from bash?
How to delete file with this name on linux: -]???????q
What command do I need to use to remove a file called `-rf`?
I've accidentally created a file called: -d
I've tried using single and double quote marks as well as wild cards to remove it but every time "rm" gives me this error:
Warning: --directory (-d) option is undocumented and no-op. Use -rf for deleting non-empty dirs rm: missing operand Try `rm --help' for more information.
How do I get rid of the file?
1
rm -- -d
works also – Ulrich Dangel – 2011-09-08T20:28:06.167This is the best solution – gd1 – 2011-09-08T21:03:46.407