Date: Thu, 21 May 1998 19:44:11 -0500 From: David Kelly <dkelly@hiwaay.net> To: "Frank Griffith" <frankg@idfw.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How do I erase an entire directory Message-ID: <199805220044.TAA07438@nospam.hiwaay.net> In-Reply-To: Message from "Frank Griffith" <frankg@idfw.com> of "Thu, 21 May 1998 17:09:08 CDT." <002a01bd8505$15bd4c60$0200a8c0@fast1.dfw.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Frank Griffith" writes: > 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. "man rm" The command you probably want is "rm -rf dirname" On the other hand this business of "installing ports and make some mistakes" concerns me. "Ports" as in /usr/ports/*"? Or some source code you are playing with? The proper way to remove a formal port (one that originated from /usr/ports or /usr/packages) after you install it is pkg_delete. Again, consult the man page. One day you'll know you've got the hang of Unix when you realize you know how to delete a file named "-r". You are most the way there when you realize the difficulty in deleting a file named "-r" before you try and get into trouble. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. 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?199805220044.TAA07438>