Removing erroneous directory entries: help needed

david.r.connet dcon at cbnewsc.att.com
Tue May 14 07:08:40 AEST 1991


In article <1991May12.175355.27106 at mprgate.mpr.ca> henderso at mpr.ca (Mark Henderson) writes:
>In article <1991May9.022627.8139 at gpu.utcs.utoronto.ca> aponty at 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 at gpu.utcs.utoronto.ca          ==== ==i=
>>     UUCP:  wheaties at intacc.uucp         (bbs)   ==== ==n=
>>            aponty at 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).



More information about the Comp.unix.wizards mailing list