From owner-freebsd-questions Thu May 21 19:05:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA29458 for freebsd-questions-outgoing; Thu, 21 May 1998 19:05:34 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gamma.aei.ca (root@gamma.aei.ca [206.123.6.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA29448 for ; Thu, 21 May 1998 19:05:29 -0700 (PDT) (envelope-from malartre@aei.ca) Received: from aei.ca (kaput@aeiusrG-01.aei.ca [206.186.205.51]) by gamma.aei.ca (8.8.5/8.8.5) with ESMTP id WAA14988; Thu, 21 May 1998 22:05:20 -0400 (EDT) Message-ID: <3564DD58.9E0B90C0@aei.ca> Date: Thu, 21 May 1998 22:05:12 -0400 From: Malartre X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: Frank Griffith CC: freebsd-questions@FreeBSD.ORG Subject: Re: How do I erase an entire directory References: <002a01bd8505$15bd4c60$0200a8c0@fast1.dfw.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Frank Griffith wrote: > I am still getting use to installing ports and make some > mistakes when I do. Each time I install and things aren't > quite right, I erase everything and reinstall the port. My > problem is I can't seem to figure out how to erase an > entire directory. If it has files in it, I can't just type rmdir > without doing each directory, starting at the bottom of the > tree. Can someone tell me if there is a command similar > to deltree in DOS for FreeBSD. > > Note: deltree will allow you to delete an entire directory and > all its subfolders with one swift command line. Try rm -R dir # pwd /home/kaput/pub/FreeBSD/FreeBSD-current/ # cd # pwd /home/kaput/ # rm -R pub Malartre -- -------------------------------------------------- malartre@aei.ca ICQ #4224434 www.aei.ca/~malartre/ Unix FreeBSD-2.2.6 -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message