Path: utzoo!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!haven!adm!xadmx!devusr@nswc-oas.arpa From: devusr@nswc-oas.arpa Newsgroups: comp.unix.wizards Subject: Ghost file Message-ID: <17566@adm.BRL.MIL> Date: 17 Nov 88 15:06:47 GMT Sender: news@adm.BRL.MIL Lines: 21 (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: >Another way of trying to delete the file is to try to generate the name: >if it appears as "ghost" in the directory you could try >rm *g*h*o*s*t* Yet another approach would be to use `ls -i' on the directory containing the ghost file. Then, use a `find' command to remove the file: find . -inum XXX -exec rm {} \; where XXX is the inode number reported by ls. /dave