Ghost file
devusr at nswc-oas.arpa
devusr at nswc-oas.arpa
Fri Nov 18 01:06:47 AEST 1988
(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:
>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
More information about the Comp.unix.wizards
mailing list