From owner-freebsd-doc Wed Nov 7 4:50:15 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4FD2F37B419 for ; Wed, 7 Nov 2001 04:50:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fA7Co3n65508; Wed, 7 Nov 2001 04:50:03 -0800 (PST) (envelope-from gnats) Date: Wed, 7 Nov 2001 04:50:03 -0800 (PST) Message-Id: <200111071250.fA7Co3n65508@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Michael Lucas Subject: Re: docs/31803: Handbook make world addition Reply-To: Michael Lucas Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/31803; it has been noted by GNATS. From: Michael Lucas To: haro@kubota.co.jp Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: docs/31803: Handbook make world addition Date: Wed, 7 Nov 2001 07:44:09 -0500 On Wed, Nov 07, 2001 at 12:51:24PM +0900, Munehiro Matsuda wrote: > > + &prompt.root; cd /usr/obj > > + &prompt.root; chflags -R noschg * > > + &prompt.root; rm -rf * > > I've heard that doing following command is much more faster, than the above. > cd /usr/obj > rm -rf * > chflags -R noschg * > rm -rf * It is faster, but it's (IMHO) not always as correct. First, I've redone the patch at multiple requests to eliminate the wildcards. It's been pointed out that "rm -rf *" isn't a good thing to recommend. Under earlier versions of FreeBSD, some files in /usr/obj were marked noschg. A user could use your example to delete the tree if he didn't care about the errors. Under newer versions of FreeBSD, /usr/obj has no schg files. The first rm -rf will delete the whole tree, and the other commands will either generate errors or have no effect. I'm trying to write a single entry that covers all versions of FreeBSD. More experienced readers will easily understand that we're telling them to remove /usr/obj/usr by any means necessary, and will use their preferred method to do so. ==ml -- Michael Lucas mwlucas@blackhelicopters.org http://www.blackhelicopters.org/~mwlucas/ Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message