Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2002 11:55:39 -0400
From:      Brian McCann <bjm1287@ritvax.isc.rit.edu>
To:        'Rus Foster' <rghf@fsck.me.uk>, freebsd-questions@FreeBSD.ORG
Subject:   RE: Slightly OT: How to remove an odd file...
Message-ID:  <005801c272d0$fab6c040$1500a8c0@dogbert>
In-Reply-To: <20021013151607.G36558-100000@freebsd.rf0.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005801c272d0$fab6c040$1500a8c0>