[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how do I delete not empty directories




On Sun, 10 May 1998, Nils Rennebarth wrote:

> On Sun, May 10, 1998 at 11:10:45AM -0400, Keith wrote:
> > I have been trying to delete directories that are not empty. I try doing
> > a rm -d * but I get a response that the operation is not allowed. I am
> > logged in as root. What am I doing wrong. I am looking something that
> > works like deltree in dos.
> You want
>   rm -r
> 
> And it's a dangerous command that can wipe your disk if you are not careful.

A not so dangerous command would be:

	cd dir
	rm *
	cd ..
	rm dir

-Egon


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: