Date: Wed, 7 Nov 2001 04:50:03 -0800 (PST) From: Michael Lucas <mwlucas@blackhelicopters.org> To: freebsd-doc@freebsd.org Subject: Re: docs/31803: Handbook make world addition Message-ID: <200111071250.fA7Co3n65508@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR docs/31803; it has been noted by GNATS. From: Michael Lucas <mwlucas@blackhelicopters.org> 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: > > + <screen>&prompt.root; <userinput>cd /usr/obj</userinput> > > + &prompt.root; <userinput>chflags -R noschg *</userinput> > > + &prompt.root; <userinput>rm -rf *</userinput> > > 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 messagehelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111071250.fA7Co3n65508>
