Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Apr 2014 17:33:36 -0500
From:      Jack Stone <jacks@sage-american.com>
To:        freebsd-questions@freebsd.org
Subject:   Monitoring directories
Message-ID:  <536028C0.3040005@sage-american.com>

next in thread | raw e-mail | index | archive | help
I have no doubt this list can answer this question, perhaps with more 
than one way to do it.

I need to be able to monitor the sub-directories in /usr & /var so the 
sizes don't get too large. I do rotate log files and those are not of 
a concern.

I realize I can run this command line, but gives way too much info not 
needed. I would like to be able to have a set of commands to spit out 
a list of sub-dirs that exceed a certain size only.

This give a full list:
# du -hs * | sort -n
....gives me a sorted list of ALL directory sizes.

How can I tell it or another cmd set to only list those subs that 
exceed a certain size?

Appreciate any help.
Thanks!

-- 
--
All the best,
Jack



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536028C0.3040005>