Re: Removing a file that starts with dashes

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



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@xxxxxxxxxx> 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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos



-- 
-----------------
Hal Wigoda
Chicago
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux