Re: how to delete file "--filename"??

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



2009/12/15 mcclnx mcc <mcclnx@xxxxxxxxxxxx>:
> 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?

Many ways to do it.. The method I prefer:

List your files by inum:
   ls -i

Find the inum associated with the file you want to delete. Then:

   find /path/to/containing/dir -inum 12345 -exec rm {} \;
_______________________________________________
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