how many blocks are how old?

acheng at uiucdcs.UUCP acheng at uiucdcs.UUCP
Wed Jan 30 01:27:00 AEST 1985


>/* ---------- "how many blocks are how old?" ---------- */
>Does anyone have any sort of utility that can be used on a filesystem
>to give you a run-down on file/block aging?  I'd like to be able to
>run it on, say, /usr/spool, to let me know how many blocks are one day
>old, two days old, 30 days old, etc.
>
>Something that gave other statistics of interest might be useful as well.
>-- 

In 4.2, there is an undocumented (at least not in our version) option, -v,
in /etc/quot that will give you 3 more columns of blocks for files not
accessed 30+, 60+, 90+ days.  The "quot" lists them out by uid and it
makes life easy for system people to locate "disk hogs" and/or "idle hogs".
Of course, the user may turn around and touch all his files but we still
assume we are in a friendly, cooperative environment.
One of our gurus modified the "du" to give a similar but more general
feature of disk blocks not accessed by *directories*.  This one would be
helpful for users to locate his idle files.  We may post it if there is a big
demand for it.



More information about the Comp.unix.wizards mailing list