Monitoring directories

Michael Ross gmx at
Tue Apr 29 23:17:28 UTC 2014

On Wed, 30 Apr 2014 00:33:36 +0200, Jack Stone <jacks at>  

> 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
> 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!

du -t <size>
du -t 100M


More information about the freebsd-questions mailing list