[EMAIL PROTECTED] 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


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to