bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to delete file named --help


From: Matthew Schalit
Subject: Re: How to delete file named --help
Date: Wed, 14 Mar 2001 23:27:03 -0800

YOGESH MAHAPARALE wrote:
> 
> _______________________________________________
> Bug-fileutils mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-fileutils



Hi Yogesh,

I had to chuckle at this one, because when the command
      /usr/local/bin/rm --help
fails, the result is a usage message that tells you how 
to remove the file :)



-----------------------------------------------------------------------
$/usr/local/bin/rm --help
Usage: /usr/local/bin/rm [OPTION]... FILE...
Remove (unlink) the FILE(s).

  -d, --directory       unlink directory, even if non-empty (super-user only)
  -f, --force           ignore nonexistent files, never prompt
  -i, --interactive     prompt before any removal
  -r, -R, --recursive   remove the contents of directories recursively
  -v, --verbose         explain what is being done
      --help            display this help and exit
      --version         output version information and exit

To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
  /usr/local/bin/rm -- -foo
  /usr/local/bin/rm ./-foo          <-------,
                                             \
Report bugs to <address@hidden>.       \
-----------------------------------------------|-----------------------------
                                               |
                                              /
        Your answer is right there  ---------'

In case you still don't get it, that's ok.  We were all new once.
Change into the directory that has the file and type this:

             /usr/local/bin/rm ./--help

Regards,
Matthew



reply via email to

[Prev in Thread] Current Thread [Next in Thread]