From owner-freebsd-questions Thu Oct 7 13:47:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (Postfix) with SMTP id DDF661525E for ; Thu, 7 Oct 1999 13:47:30 -0700 (PDT) (envelope-from ludwigp@bigfoot.com) Received: (qmail 27658 invoked from network); 7 Oct 1999 20:47:29 -0000 Received: from toy.chip-web.com (HELO bigfoot.com) (@172.16.1.30) by inet.chip-web.com with SMTP; 7 Oct 1999 20:47:29 -0000 Message-ID: <37FD06E4.493CE762@bigfoot.com> Date: Thu, 07 Oct 1999 13:47:32 -0700 From: Ludwig Pummer X-Mailer: Mozilla 4.61 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mark Ovens Cc: patl@phoenix.volant.org, Jack Winslade , Matthew Joseff , freebsd-questions@freebsd.org Subject: Re: Wierd Directory listing References: <199910071739.MAA16970@iwww.sitel.net> <19991007203833.D316@marder-1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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* > > > > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message