View previous topic :: View next topic |
Author |
Message |
howey n00b
Joined: 24 May 2004 Posts: 37 Location: Sydney, Australia.
|
Posted: Mon Mar 07, 2005 1:02 am Post subject: Removing a directory with leading dashes |
|
|
Hi
I somehow ended up with a directory called "--help", how to I go about removing it, because rm -rf --help, rm -rf \-\-help and rm -rf "--help/" all give me the help page. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Mar 07, 2005 1:06 am Post subject: |
|
|
End the command with "--" by itself, then give the argument; every GNU program is written to read "--" as "this is the end of the options - here come the arguments."
_________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
howey n00b
Joined: 24 May 2004 Posts: 37 Location: Sydney, Australia.
|
Posted: Mon Mar 07, 2005 1:21 am Post subject: |
|
|
I'll keep that in mind for the future, thanks. |
|
Back to top |
|
|
|