From owner-freebsd-questions@FreeBSD.ORG Fri Aug 22 12:55:21 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F16F216A4C0 for ; Fri, 22 Aug 2003 12:55:20 -0700 (PDT) Received: from smaug.rhavenn.net (rrcs-central-24-123-125-186.biz.rr.com [24.123.125.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2855C43FE0 for ; Fri, 22 Aug 2003 12:55:20 -0700 (PDT) (envelope-from lists@rhavenn.net) Received: from 10.0.0.26 (ip67-89-92-242.z92-89-67.customer.algx.net [67.89.92.242]) by smaug.rhavenn.net (Postfix) with ESMTP id 4C6162A88F; Fri, 22 Aug 2003 15:10:24 -0500 (CDT) From: Henrik Hudson To: Edouard Saksonov , questions@freebsd.org Date: Fri, 22 Aug 2003 14:55:11 -0500 User-Agent: KMail/1.5.2 References: <20030822190052.25702.qmail@web12408.mail.yahoo.com> In-Reply-To: <20030822190052.25702.qmail@web12408.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308221455.11710.lists@rhavenn.net> Subject: Re: Can not rmdir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: lists@rhavenn.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 19:55:21 -0000 On Friday 22 August 2003 14:00, Edouard Saksonov wrote: > Hi, > I've just installed FreeBSD 5.1, everything is fine, but when I wanted to > remove a directory(with only one file in it), the system do not want to do > that: When I type > > rmdir -p dir_name , it gives me as an output : > >rmdir: dir_name: Directory not empty > > When I try > > rmdir -rf dir_name , it gives me as an output : > >rmdir: illegal option --r > >usage: rmdir [-p] directory ... > And if you don't want it to prompt you, do: rm -rf dir_name Be careful though..this can and will wipe your whole system if you accidentally type: rm -rf / and then tap the enter key :) and yes, I've done it both on purpose to see what happens and not on purpose. The former is kinda cool, the latter makes you say a few choice words. Henrik -- Henrik Hudson listsNO@SPAMrhavenn.net "`If there's anything more important than my ego around, I want it caught and shot now.'" --Hitchhikers Guide to the Galaxy