From owner-freebsd-questions Sun Oct 13 8:57:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2310537B401 for ; Sun, 13 Oct 2002 08:57:20 -0700 (PDT) Received: from vms3.rit.edu (vms3.isc.rit.edu [129.21.3.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1715C43E9C for ; Sun, 13 Oct 2002 08:57:18 -0700 (PDT) (envelope-from bjm1287@ritvax.isc.rit.edu) Received: from dogbert ([129.21.129.47]) by ritvax.isc.rit.edu (PMDF V5.2-32 #40294) with ESMTPA id <01KNM60P19XUP0AA9J@ritvax.isc.rit.edu> for freebsd-questions@FreeBSD.ORG; Sun, 13 Oct 2002 11:56:51 EDT Date: Sun, 13 Oct 2002 11:55:39 -0400 From: Brian McCann Subject: RE: Slightly OT: How to remove an odd file... In-reply-to: <20021013151607.G36558-100000@freebsd.rf0.com> To: 'Rus Foster' , freebsd-questions@FreeBSD.ORG Message-id: <005801c272d0$fab6c040$1500a8c0@dogbert> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook, Build 10.0.2616 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG No go...here's the listing for the file...here's what happens... -rwsr-sr-x 1 root root 64924 Sep 2 15:24 rm " " rm: remove write-protected file ` '? y rm: cannot unlink ` ': Operation not permitted Any other ideas? --Brian -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of Rus Foster Sent: Sunday, October 13, 2002 10:17 AM To: Brian McCann Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Slightly OT: How to remove an odd file... On Sun, 13 Oct 2002, Brian McCann wrote: > I've got an interesting question for you all. I've got a file who's > name is " "...3 blank spaces. It shows up when I do an ls -la, and I > can get it's inode # (it's in RedHat...a box I'm going to convert to > FreeBSD real soon)...does anyone know how to remove a file based off > of an inode #? > > --Brian McCann Have you tried rm " " ? I've just tried it on my box bash-2.05# touch " " bash-2.05# ls -ld " " -rw-r--r-- 1 root wheel 0 Oct 13 13:13 bash-2.05# rm " " bash-2.05# ls -ld " " ls: : No such file or directory Rus -- http://www.fsck.me.uk - My blog http://shells.fsck.me.uk - Hosting how you want it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message