how to delete file "--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 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
how to delete file "--filename"??
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 * ************************************************** ********************* _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
how to delete file "--filename"??
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 -- Kind Regards Rudi Ahlers CEO, SoftDux Hosting Web: http://www.SoftDux.com Office: 087 805 9573 Cell: 082 554 7532 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
how to delete file "--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 > > > __________________________________________________ _ > 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! > 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 heller@deepsoft.com -- http://www.deepsoft.com/ModelRailroadSystem/ _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
how to delete file "--filename"??
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 {} ; _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos |
| All times are GMT. The time now is 04:12 AM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.