From owner-freebsd-questions Thu Dec 9 14:57:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 6A4EA1527E for ; Thu, 9 Dec 1999 14:57:29 -0800 (PST) (envelope-from zzhang@cs.binghamton.edu) Received: from sol.cs.binghamton.edu (cs1-gw.cs.binghamton.edu [128.226.171.72]) by bingnet2.cc.binghamton.edu (8.9.3/8.9.3) with SMTP id RAA14318; Thu, 9 Dec 1999 17:57:19 -0500 (EST) Date: Thu, 9 Dec 1999 16:44:10 -0500 (EST) From: Zhihui Zhang To: Ben Smithurst Cc: cjclark@home.com, freebsd-questions@FreeBSD.ORG Subject: Re: hopefully three simple questions In-Reply-To: <19991209201115.B1271@strontium.scientia.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 9 Dec 1999, Ben Smithurst wrote: > Crist J. Clark wrote: > > > Zhihui Zhang wrote, > > > >> (2) How to find the largest directory in a filesystem? I mean the one > >> with the maximum number of files in it. I have found a solution (hopefully correct): # find / -type d -ls | awd '{print $2, $11}' | sort -n | tail -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message