From owner-freebsd-questions Sun Oct 28 17:41:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id B96FB37B406 for ; Sun, 28 Oct 2001 17:41:40 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 69669BCFE; Sun, 28 Oct 2001 17:41:40 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id RAA26819; Sun, 28 Oct 2001 17:41:40 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id f9T1eWG49864; Sun, 28 Oct 2001 17:40:32 -0800 (PST) (envelope-from swear@blarg.net) To: "PetBuilder" Cc: Subject: Re: Removing Full Directories References: <003001c15f0a$39466170$77a44a42@home> <20011027121055.B22280@dan.emsphone.com> <003601c15f0b$e824f660$77a44a42@home> <0110271112442F.96094@chip.wiegand.org> From: swear@blarg.net (Gary W. Swearingen) Date: 28 Oct 2001 17:40:32 -0800 In-Reply-To: <0110271112442F.96094@chip.wiegand.org> Message-ID: <1fwv1ffckv.v1f@localhost.localdomain> Lines: 15 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chip writes: > A word of warning: be VERY careful with rm -rf, if you mistakenly remove the > wrong directory, any directory including all the root directories - its GONE, > say bye-bye to whatever was there. Slightly less dangerous is "\rm -r" (in sh-family shells the slash just causes it to ignore any alias like "rm -i"). Some Unix OSes allow the superuser to use the "unlink" command to very quickly remove even very large directories, but I see that this has been removed from FreeBSD. (It leaves the filesystem in "need" of a "fsck".) P.S. Red Hat Linux (at one time, at least) had special behavior if you tried to delete "/". It probably just gave special warning -- I forget. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message