At Tue, 15 Dec 2009 21:47:45 +0800 (CST) CentOS mailing list 
<centos@centos.org> wrote:

> 
> i have file on CENTOS 4.6 and I tried to delete it failed.  I have been tried 
> following way but NOT work:
> 
> rm -i *
> 
> rm --filename
> 
> rm \--filename
> 
> rm "\--filename"
> 
> rm '\--filename'
> 
> any ideal?

On *any* UNIX system (this *always* works):

rm ./--filename

Using GNU File Tools (this should work under CentOS):

rm -- --filename

> 
> 
> ___________________________________________________ 
>  ±zªº¥Í¬¡§Y®É³q ¡Ð ·¾³q¡b®t¼Ö¡b¥Í¬¡¡b¤...@¤@¦¸·d©w¡I 
>  http://messenger.yahoo.com.tw/
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
>                                                                

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
hel...@deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                                
                         
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to