Removing files with weird names
From Noah.org
Revision as of 13:16, 28 June 2007 by Root (talk | contribs) (New page: Category:Engineering In a shell type: <pre> touch -- -rf </pre> Now as yourself, "how do I delete it?" Most GNU tools will accept '--' as an option. This tells the option parser to...)
In a shell type:
touch -- -rf
Now as yourself, "how do I delete it?"
Most GNU tools will accept '--' as an option. This tells the option parser to stop interpreting the arguments list as options. For example, to remove a file named "-rf" do this:
rm -- -rf