Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2001 17:23:24 -0700
From:      Gary Kline <kline@tao.thought.org>
To:        parv <parv_@yahoo.com>
Cc:        ChildsC@BCRAIL.COM, brigg@flatlan.net, freebsd-questions@FreeBSD.ORG
Subject:   Re: somewhat interesting rm issue
Message-ID:  <20010628172323.B3556@tao.thought.org>
In-Reply-To: <20010628201452.A2404@moo.holy.cow>; from parv_@yahoo.com on Thu, Jun 28, 2001 at 08:14:52PM -0400
References:  <01Jun28.130929pdt.119046@gatekeeper.bcrail.com> <20010628201452.A2404@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 28, 2001 at 08:14:52PM -0400, parv wrote:
> so, ChildsC@BCRAIL.COM shared this in my lifetime...
> > What error messages are you getting?  Maybe the name contains some spaces.
> > Try rm -i blah*
> > 
> > Chris
> > 
> > -----Original Message-----
> > From: Brigg Angus [mailto:brigg@flatlan.net]
> > Sent: Thursday, June 28, 2001 1:07 PM
> > To: freebsd-questions@FreeBSD.org
> > Subject: somewhat interesting rm issue
> > 
> ...
> 
> > work. When I rm or rm -rf the file there is no error message, but the file
> > remains.
> > 
> > "ls -ol blah" has yielded both,
> > -rw-r-xr-x  1 777  brigg  - 13 Jun 27 21:31 blah
> > -rwxrwxrwx  1 777  brigg  - 13 Jun 27 21:31 blah
> > 
> 
> while we are on the topic, is there any way to remove a file by inode
> instead of by filename? didn't see anything in rm(1) and unlink(2) 
> barely mentions the word 'inode' in context of error code [EIO].
> 
> this can be really useful when 2 filenames /appear/ to be same, but
> not in reality...
>  

	You'll find the exact formula in an old edition of 
	DaemonNews.  

	It's something like  

	  % find -inum <<index number>> -print -exec rm -i {} \;

	((At least 75% of the questions here could be answered by 
	  checking the right URL.  Of the FBSD Diary, Daemonnews, or
	  the handbook FAQ's....  Somebody ought to put together a
	  master index :-))

	-g




-- 
   Gary D. Kline    kline@thought.org  www.thought.org    Public service Unix


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?20010628172323.B3556>