Date: Wed, 8 Dec 1999 23:50:53 -0800 From: Brent Kearney <brent@kearneys.ca> To: Zhihui Zhang <zzhang@cs.binghamton.edu> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.org> Subject: Re: hopefully three simple questions Message-ID: <19991208235053.A13173@kearneys.ca> In-Reply-To: <Pine.GSO.3.96.991208111339.2570A-100000@sol.cs.binghamton.edu>; from zzhang@cs.binghamton.edu on Wed, Dec 08, 1999 at 11:19:01AM -0500 References: <Pine.GSO.3.96.991208111339.2570A-100000@sol.cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991208235053.A13173>