[CentOS] Removing a file that starts with dashes

Hal Wigoda hal.wigoda at gmail.com
Wed Apr 2 14:49:43 UTC 2014


It is possible.

Mask the - by putting a \ or / in front ot it.

Or try:

rm ./-filename

On Wed, Apr 2, 2014 at 9:44 AM, Frank M. Ramaekers
<FRamaekers at ailife.com> wrote:
> How can I remove this file?
>
> -rw-r--r-- 1 root    root       28707 Mar 31 12:31 --backup=numbered
>
>
>
> I've tried a few different methods, but most attempts interprets the
> file name as a switch (which it doesn't understand).
>
>
>
> TIA,
>
> Frank M. Ramaekers Jr. | Systems Programmer | Information Technology |
> American Income Life Insurance Company | 254-761-6649
>
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos



-- 
-----------------
Hal Wigoda
Chicago



More information about the CentOS mailing list