From owner-freebsd-questions Thu May 2 21:25:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sub21-156.member.dsl-only.net (sub21-156.member.dsl-only.net [63.105.21.156]) by hub.freebsd.org (Postfix) with ESMTP id 7748737B41A for ; Thu, 2 May 2002 21:25:44 -0700 (PDT) Received: from sub21-156.member.dsl-only.net (freebsd.localhost.localdomain [127.0.0.1]) by sub21-156.member.dsl-only.net (8.11.6/8.11.6) with SMTP id g434VJC19745; Thu, 2 May 2002 21:31:19 -0700 (PDT) (envelope-from nkinkade@dsl-only.com) Date: Thu, 2 May 2002 21:31:18 -0700 From: Nathan Kinkade To: "Defryn, Guy" Cc: freebsd-questions@freebsd.org Subject: Re: How do I delete directories and subdirectories at once Message-Id: <20020502213118.04582b12.nkinkade@dsl-only.com> In-Reply-To: <98B01D2717B9D411B38F0008C7840931057F3803@its-xchg2.massey.ac.nz> References: <98B01D2717B9D411B38F0008C7840931057F3803@its-xchg2.massey.ac.nz> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 3 May 2002 16:18:42 +1200 "Defryn, Guy" wrote: > > > This is probably a silly question but I cannot figure out how to > delete directories, subdirectories and all files in one go. > > Thanks rm -rf it's a recursive removal of files....so if you: $ rm -rf /usr/local/www everything below the www dir, and the www dir itself, will be deleted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message