[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "rm" bug
From: |
Bob Proulx |
Subject: |
Re: "rm" bug |
Date: |
Sun, 28 Aug 2005 18:46:38 -0600 |
User-agent: |
Mutt/1.5.9i |
address@hidden wrote:
> I cannot remove files which beggins with "-"
> for example:
> -TRY_TO_REMOVE_THIS_FILE
> is this bug, or I don't know how to use "rm"?
If you run:
rm --help
Or:
man rm
You will see the following text which describes your problem.
To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
rm -- -foo
rm ./-foo
This is also an FAQ. Here is the frequently given answer.
http://www.gnu.org/software/coreutils/faq/
Look for "How do I remove files that start with a dash?".
Bob