From owner-freebsd-questions@FreeBSD.ORG Fri Aug 22 12:31:01 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 4C33E16A4BF for ; Fri, 22 Aug 2003 12:31:01 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-97.dsl.lsan03.pacbell.net [64.169.107.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A41A43FD7 for ; Fri, 22 Aug 2003 12:31:00 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 4242866B04; Fri, 22 Aug 2003 12:31:00 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 249A5A3E; Fri, 22 Aug 2003 12:31:00 -0700 (PDT) Date: Fri, 22 Aug 2003 12:31:00 -0700 From: Kris Kennaway To: Edouard Saksonov Message-ID: <20030822193100.GC97519@rot13.obsecurity.org> References: <20030822190052.25702.qmail@web12408.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f0KYrhQ4vYSV2aJu" Content-Disposition: inline In-Reply-To: <20030822190052.25702.qmail@web12408.mail.yahoo.com> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Can not rmdir X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Aug 2003 19:31:01 -0000 --f0KYrhQ4vYSV2aJu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 22, 2003 at 12:00:52PM -0700, 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=20 > rmdir -p dir_name , it gives me as an output : > >rmdir: dir_name: Directory not empty =20 This is presumably correct. > When I try=20 > rmdir -rf dir_name , it gives me as an output : > >rmdir: illegal option --r > >usage: rmdir [-p] directory ... This is also correct (rmdir does not have the -r option). > I installed FreeBSD 5.1 from the CD-ROM which comes with "Linux CD" magaz= ine > Maybe something's wrong with this CD ? No, you're just misusing it :-) To remove a directory and all its contents, you want to use rm -r. Kris --f0KYrhQ4vYSV2aJu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Rm9zWry0BWjoQKURAk2LAJ9YAF743J4UNn06Regtm93TABV0hwCdFoCa nIKlt/m4Ep6jEaD8ThIcokE= =pc6n -----END PGP SIGNATURE----- --f0KYrhQ4vYSV2aJu--