Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 1998 22:05:12 -0400
From:      Malartre <malartre@aei.ca>
To:        Frank Griffith <frankg@idfw.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How do I erase an entire directory
Message-ID:  <3564DD58.9E0B90C0@aei.ca>
References:  <002a01bd8505$15bd4c60$0200a8c0@fast1.dfw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
<screenshot>
# pwd
/home/kaput/pub/FreeBSD/FreeBSD-current/
# cd
# pwd
/home/kaput/
# rm -R pub
</screenshot>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3564DD58.9E0B90C0>