Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!amdahl!pacbell!sactoh0!tree!asmodeus From: asmodeus@tree.UUCP (Jonathan Ballard) Newsgroups: comp.unix.wizards Subject: Re: Ghost file Summary: yet another way Message-ID: <149@tree.UUCP> Date: 19 Nov 88 16:36:39 GMT References: <17566@adm.BRL.MIL> Organization: TREE BBS (916)-349-0385 Sacramento, Ca Lines: 32 In article <17566@adm.BRL.MIL>, devusr@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 ) 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