Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!att!cbnewsc!dcon From: dcon@cbnewsc.att.com (david.r.connet) Newsgroups: comp.unix.wizards Subject: Re: Removing erroneous directory entries: help needed Message-ID: <1991May13.210840.4111@cbnewsc.att.com> Date: 13 May 91 21:08:40 GMT References: <1991May9.022627.8139@gpu.utcs.utoronto.ca> <1991May12.175355.27106@mprgate.mpr.ca> Distribution: na Organization: AT&T Bell Laboratories Lines: 24 In article <1991May12.175355.27106@mprgate.mpr.ca> henderso@mpr.ca (Mark Henderson) writes: >In article <1991May9.022627.8139@gpu.utcs.utoronto.ca> aponty@gpu.utcs.utoronto.ca (Adele Ponty) writes: >>One of the users on our system managed to create an entry >>in one of our user_data directories that appears at the top >>of the directory listing as, -k@ . A long listing reveals >>it to be some sort of link they attempted to create; >>l--------- -k@ ... ... -k@ -> df >>I don't know how they managed this but can someone tell me how >>to get rid of it? I have a feeling that I may see more of these. >>Thanks. >>-- >> ==== ==M= >> INTERNET: aponty@gpu.utcs.utoronto.ca ==== ==i= >> UUCP: wheaties@intacc.uucp (bbs) ==== ==n= >> aponty@agora.rain.com (alternate) =======g= > >Use ls -i to find out the inode number of the file/link and then either >use >find . -inum xxxx -exec rm '{}' \; >or the following short program to delete the file. [deleted] Or (sigh) more simply, 'rm -- -k@'. See the rm man page for other options (like -i).