Date: Thu, 7 Oct 1999 21:51:26 +0100 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Ludwig Pummer <ludwigp@bigfoot.com> Cc: patl@phoenix.volant.org, Jack Winslade <jsw@iwww.sitel.net>, Matthew Joseff <mjoseff@retribution.net>, freebsd-questions@freebsd.org Subject: Re: Wierd Directory listing Message-ID: <19991007215126.E817@marder-1> In-Reply-To: <37FD06E4.493CE762@bigfoot.com> References: <199910071739.MAA16970@iwww.sitel.net> <ML-3.4.939320082.54.patl@asimov> <19991007203833.D316@marder-1> <37FD06E4.493CE762@bigfoot.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 07, 1999 at 01:47:32PM -0700, Ludwig Pummer wrote: > I prefer > > ls -i > (look at inode number of funny file) > find -inum {number} -delete > > As long as you get the inode number right, there's no chance of deleting > any file but the file you want to delete. > Ah thanks. When I had one of these files to rm I recalled reading something about using the inode number to delete it but a search of the archives turned up nothing (I really don't trust that search engine). I'll make a note of this:) > Mark Ovens wrote: > > > > On Thu, Oct 07, 1999 at 11:14:42AM -0700, patl@phoenix.volant.org wrote: > > > On 7-Oct-99 at 10:42, Jack Winslade (jsw@iwww.sitel.net) wrote: > > > > The trick I use to remove unremovable files is to specify a pattern that > > > > matches only the bad one. I would first try: > > > > > > > > rm *7* > > > > > > Just a note for the paranoid: When I need to do something like > > > this, I use the sequence: > > > > > > ls *7* > > > <Make sure it only listed the file(s) I want deleted> > > > rm *7* > > > > > > > Another one is to use ``rm -i *'', but be careful about answering > > ``y'' :) It worked for me. Curiously, ``rm -i'' displayed the > > offending chars differently to ls(1) which, as in the example, just > > uses the wildcard ``?'' Hmm. > > > > > And, while we are on the topic of deleting inconviently named > > > files; the easiest way to delete a file that starts with a dash > > > is to put './' in front. E.g., > > > > > > rm ./-r > > > > > > > > > -Pat > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > -- > > STATE-OF-THE-ART: Any computer you can't afford. > > OBSOLETE: Any computer you own. > > ________________________________________________________________ > > FreeBSD - The Power To Serve http://www.freebsd.org > > My Webpage http://ukug.uk.freebsd.org/~mark/ > > mailto:mark@ukug.uk.freebsd.org http://www.radan.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > -- > > --Ludwig Pummer <ludwigp@bigfoot.com> -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991007215126.E817>