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/
On 12/15/09 3:47 PM, 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?try rm -- --filename -- Eero
2009/12/15 mcclnx mcc <mcclnx at 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 -- Marcelo "?No ser? acaso que ?sta vida moderna est? teniendo m?s de moderna que de vida?" (Mafalda)
From: mcclnx mcc <mcclnx at 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) -- Paul Bijnens, Xplanation Technology Services Tel +32 16 397.525 Interleuvenlaan 86, B-3001 Leuven, BELGIUM Fax +32 16 397.552 *********************************************************************** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, ^^, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, ~., * * stop, end, ^]c, +++ ATH, disconnect, halt, abort, hangup, KJOB, * * ^X^X, :D::D, kill -9 1, kill -1 $$, shutdown, init 0, Alt-F4, * * Alt-f-e, Ctrl-Alt-Del, Alt-SysRq-reisub, Stop-A, AltGr-NumLock, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***********************************************************************
2009/12/15 mcclnx mcc <mcclnx at 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 -- Kind Regards Rudi Ahlers CEO, SoftDux Hosting Web: http://www.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532
At Tue, 15 Dec 2009 21:47:45 +0800 (CST) CentOS mailing list <centos at 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 at 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 heller at deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/
2009/12/15 mcclnx mcc <mcclnx at 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 {} \;