Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.sys.hp Subject: Re: Trying to remove a file called "-ls" Message-ID: <1302@auspex.UUCP> Date: 27 Mar 89 20:08:17 GMT References: <570@sdrc.UUCP> <4640014@hpirs.HP.COM> <3588@sdsu.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 15 >Why not simply write a C program which uses the unlink system call to >purge the file? Why not write a stand-alone program to read and write disk blocks, and patch memory, and patch the directory? Why not take out a little bar magnet and remagnetize the disk block containing the directory entry and the inode? As has been stated several times, if you want to remove a file called "-ls" you just do rm -- -ls which is one hell of a lot simpler than whacking up a C program to unlink the file....