From owner-freebsd-questions Wed Dec 8 23:48:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kearneys.ca (cr1003527-a.rct1.bc.wave.home.com [24.113.36.145]) by hub.freebsd.org (Postfix) with SMTP id 9C4D7152F2 for ; Wed, 8 Dec 1999 23:48:27 -0800 (PST) (envelope-from brent@kearneys.ca) Received: (qmail 13211 invoked by uid 1000); 9 Dec 1999 07:50:53 -0000 Date: Wed, 8 Dec 1999 23:50:53 -0800 From: Brent Kearney To: Zhihui Zhang Cc: FreeBSD Questions Subject: Re: hopefully three simple questions Message-ID: <19991208235053.A13173@kearneys.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from zzhang@cs.binghamton.edu on Wed, Dec 08, 1999 at 11:19:01AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Dec 08, 1999 at 11:19:01AM -0500, Zhihui Zhang wrote: > > I got three questions: > > (1) How to determine the deepest directory in a filesystem? > > (2) How to find the largest directory in a filesystem? I mean the one > with the maximum number of files in it. I'm not sure off hand how to go about this, perhaps some shell-wizard will answer your post. For those who don't get the question, I think what it means is 1) How do you count how many subdirectories "deep" a filesystem goes, i.e., /mnt/blah/blah1/blah2/blah3/blah4/blah5, for the 'blah' filesystem, there is a depth of 5., and 2) how do you count all of the files in a filesystem and report which directory has the most files in it? Zhihui, it is likely some combination of "find" and "du". > > (3) How to enforce automatic logout after specified amount of time? > This is set in /etc/login.conf, with the :idletime directive. See man login.conf for details. -Brent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message