Path: utzoo!attcan!uunet!husc6!mailrus!ames!haven!adm!xadmx!mchinni@ardec.arpa From: mchinni@ardec.arpa (Michael J. Chinni, SMCAR-CCS-E) Newsgroups: comp.unix.wizards Subject: Re: Ghost file Message-ID: <17617@adm.BRL.MIL> Date: 22 Nov 88 16:00:53 GMT Sender: news@adm.BRL.MIL Lines: 44 bill vermillion > In article <169@pinn.UUCP+ sysop@pinn.UUCP (Andy Johnson) writes: > +In article <8430@alice.UUCP+, debra@alice.UUCP (Paul De Bra) writes: > ++ In article <17529@adm.BRL.MIL+ ZAT011%DJUKFA11.BITNET@cunyvm.cuny.edu (Thomas Heil) writes: > ++ I would suspect that the name of the ghost file contains a non-printable > ++ character, which doesn't show up when you try ls. A way to find out is > ++ to make an octal dump of the directory. > + > +You can also type in rm -i * That will interactively ask you to delete > +each file including the ghost file. > + > +Andy > > I tried that (rm -i *) with a ghost file and it did NOT work. Dumped the > directory and found that the file name had a printable letter, 0x08, and two > more letters. The 0x08 (backspace) effectively masked the first letter. > rm -i * would prompt with the name, and then give a file not found error. > The only way to get rid of one of those is to kill with the > find . -inum etc, etc routine posted earlier. When I tried the following: 1) set "stty erase ^X" 2) echo hi > a^Hqw 3) set "stty erase ^H" 4) rm -i * "rm" doesn't complain. System is ULTRIX 1.2. rm is /bin/rm (std. rm). When doing a "ls" I get the file showing as "a?qw". ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() X X / \ / \ | | | | Michael J. Chinni || | | || |||| | | |||| US Army Armament Research, Development, /\ |||||| | | |||||| /\ and Engineering Center || |||||||| | | |||||||| || |||||+---+|| | | ||+---+||||| Picatinny Arsenal, New Jersey ||||||\./||| | | |||\./|||||| ||||||.X.||| | | |||.X.|||||| ||||||/.\||| | | |||/.\|||||| ARPA: mchinni@ardec.arpa ||---+---+-| | | |-+---+---|| UUCP: ...!uunet!ardec.arpa!mchinni || ||||||| | | | | ||||||| || AT&T: 201-724-4140 ++ +-+ +-+ ++ ()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()() #include