*BSD News Article 24237


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!milo.mcs.anl.gov!xray!winans
From: winans@xray.aps.anl.gov (John R. Winans)
Subject: Re: How do you rm a strange file?
Message-ID: <CGrCK8.JBC@mcs.anl.gov>
Sender: usenet@mcs.anl.gov
Organization: Argonne National Laboratory, Chicago Illinois
References: <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au>
Date: Fri, 19 Nov 1993 21:19:19 GMT
Lines: 19

In article <2ch6t2$ih5@netbsd08.dn.itg.telecom.com.au> tdwyer@netbsd08.dn.itg.telecom.com.au (Terry Dwyer 619 491 5161) writes:
> seem to have created a file that I can't delete in the middle of 
>a large directory structure:
>
>-rw-r--r--    1 tdwyer         58 Nov 19 08:54 -lg | less
>
>Any clues how to rm it?

How about "rm -i *"  and say 'n' to everything except the one you want
to get rid of?  Either that or use wildcards.   If you are root in a nasty
spot, like /etc or /bin, I HIGHLY recommend the use of the -i flag!

--John

-- 
! John Winans                     Advanced Photon Source  (Controls)    !
! winans@mcs.anl.gov              Argonne National Laboratory, Illinois !
!                                                                       !
!"The large print giveth, and the small print taketh away." - Tom Waits !