From owner-freebsd-questions@FreeBSD.ORG Tue Mar 2 06:28:10 2004 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 0E34816A4CE for ; Tue, 2 Mar 2004 06:28:10 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86FB243D1D for ; Tue, 2 Mar 2004 06:28:09 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i22ES5Z04990; Tue, 2 Mar 2004 09:28:05 -0500 (EST) From: Jerry McAllister Message-Id: <200403021428.i22ES5Z04990@clunix.cl.msu.edu> To: satimis@icare.com.hk (Stephen Liu) Date: Tue, 2 Mar 2004 09:28:04 -0500 (EST) In-Reply-To: <200403022221.24406.satimis@icare.com.hk> from "Stephen Liu" at Mar 02, 2004 10:21:24 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: How to remove a non-empty directory 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: Tue, 02 Mar 2004 14:28:10 -0000 > > Hi all folks, > > Kindly advise where can I find the small program 'midnight commander' for > FreeBSD. OR what command line shall be applied on FBSD to remove a non-empty > directory together with its content I have never tried anything called midnight commander, but you might check in the ports collection. If you installed the skeleton like you should have, go to /usr/ports and start looking around. As for removing a non-empty directory: rm -r dirname I normally cd to the dir's parent (just above it) and do a couple of checks of where I am and what I am rm-ing before actually doing it, because once you hit enter it is gone. If you happen to have any files in that directory tree with flags set, especially schg, then it will not remove those, but will all the others. Then you would have to go in and run chflags noschg on those files and then go back out and run the rm -r again. It will ask you if it is OK to remove those files and act like it did, but it won't. kernel is one of those files that normally have schg set on it. see man chflags ////jerry > > TIA > > B.R. > satimis > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >