Ghost file

Jonathan Ballard asmodeus at tree.UUCP
Sun Nov 20 02:36:39 AEST 1988


In article <17566 at adm.BRL.MIL>, devusr at nswc-oas.arpa writes:
> (Thomas Heil) writes:
> >Hello, folks!
> >
> >I got a little problem with  a "ghost file". It appears when I  list the
> >contents of  a directory, but  it can't be accessed  in any way  - every
> >program tells  me it doesn't  exist. It can't  even be removed.
> 
> (Paul De Bra <debra at alice.uucp>) responds:
[ stuff deleted]
> >rm *g*h*o*s*t*
[stuff deleted]
> 	find . -inum XXX -exec rm {} \;
> where XXX is the inode number reported by ls.
> 
> /dave

And another way, which will find out the full name it is uder is to do a

od -cb .

It will run threw and show the ascii and binary code of the directory.  If
yours is set up like my the first two chaaracters are the inode number
and the rest (asumming 14 more) on that line is the name.  You should see
there if there is any extra characters that ls would not print out.
Then you could use rm to remove it while you add that non-graphic character.

-- 
         _
   |    | \	 	UUCP e-mail:  ..!{csusac,pacbell}!sactoh0!tree!asmodeus
   |    |-< 	    		      ..!csusac!tree!asmodeus 
|__|on  |_/allard  		      



More information about the Comp.unix.wizards mailing list