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?
___________________________________________________ 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! http://messenger.yahoo.com.tw/
2009/12/15 mcclnx mcc mcclnx@yahoo.com.tw:
i have file on CENTOS 4.6 and I tried to delete it failed. I have been tried following way but NOT work:
rm -- --filename
From: mcclnx mcc mcclnx@yahoo.com.tw
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?
$ rm -- "--filename"
JD
On 2009-12-15 14:47, mcclnx mcc 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?
rm -- --filename rm ./--filename
(the last one works also for the few commands that do not have "--" to signal end of options)
2009/12/15 mcclnx mcc mcclnx@yahoo.com.tw:
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?
rm ./--filename
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€u§@€@Šž·d©w¡I http://messenger.yahoo.com.tw/ _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
2009/12/15 mcclnx mcc mcclnx@yahoo.com.tw:
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 {} ;