From owner-freebsd-questions Thu Oct 23 06:14:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA24419 for questions-outgoing; Thu, 23 Oct 1997 06:14:15 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from solist. ([193.219.246.204]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id GAA24403 for ; Thu, 23 Oct 1997 06:14:10 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from partitur.se by solist. (SMI-8.6/SMI-SVR4) id PAA01880; Thu, 23 Oct 1997 15:11:56 +0200 Message-ID: <344F4D1C.802DE3FC@partitur.se> Date: Thu, 23 Oct 1997 15:11:56 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 5.5.1 sun4u) MIME-Version: 1.0 To: "Matthew D. Fuller" CC: Shawn Ramsey , questions@FreeBSD.ORG Subject: Re: deleted huge directory References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Matthew D. Fuller wrote: > > On Wed, 22 Oct 1997, Shawn Ramsey wrote: > > > Does anyone have any suggestions for deleting a huge directory? The > > direcory is /var/news/spool/control/cancel. The directory is too large to > > even do a ls. If I try doing ls, it eats up all the avail. RAM(140+mb) and > > hangs. Anyone? I would try a wildcard, but I don't know what the filenames > > are. (This is a very large news server, and this directory has never been > > touch as far as I know.) > > Dear god. > If you don't mind, I'll just borrow all that space..... > Can you get a file listing by echo * > /place/some/file.list ? > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > | FreeBSD; the way computers were meant to be | > * "The only reason I'm burning my candle at both ends, is * > | that I haven't figured out how to light the middle yet."| > * fullermd@futuresouth.com :-} MAtthew Fuller * > | http://keystone.westminster.edu/~fullermd | > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* maybe find dirpath -exec rm {} \; will do it? just a wild guess... /palle