From owner-freebsd-questions Fri Feb 9 11: 4:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id ADBDB37B6A0 for ; Fri, 9 Feb 2001 11:04:10 -0800 (PST) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.2/8.11.2) with ESMTP id f19J44c26181; Fri, 9 Feb 2001 14:04:04 -0500 (EST) Date: Fri, 9 Feb 2001 14:03:50 -0500 (EST) From: Zhiui Zhang X-Sender: zzhang@onyx To: "Dennis C. Prather" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: directories In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 9 Feb 2001, Dennis C. Prather wrote: > Is there a way to delete a directory and all of the contents inside of it? > When try to use rmdir it always says "Directory not empty". The man page > says nothing about a recursive way to do it. This is not a FreeBSD-specific question. But I will try "rm -rf dir". It should delete everything under dir by force (-f) and recursively (-r). Be very careful. -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message