How to delete files starting with "-"?

Geert Hendrickx ghen at netbsd.org
Wed Sep 6 07:38:36 PDT 2006


On Thu, Sep 07, 2006 at 12:07:52AM +1000, Petr Janda wrote:
> Is it possible? How? Ive been trying to figure out.

rm -- -foo

(that's why I did "touch -- -i" in my homedir, so I can't accidentally do
"rm *" there ;-))

	Geert





More information about the Users mailing list