Date: Wed, 30 Apr 2014 01:17:16 +0200 From: "Michael Ross" <gmx@ross.cx> To: freebsd-questions@freebsd.org, "Jack Stone" <jacks@sage-american.com> Subject: Re: Monitoring directories Message-ID: <op.xe3pm2a5g7njmm@michael-think> In-Reply-To: <536028C0.3040005@sage-american.com> References: <536028C0.3040005@sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Apr 2014 00:33:36 +0200, Jack Stone <jacks@sage-american.com> wrote: > 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! > du -t <size> du -t 100M Michael
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.xe3pm2a5g7njmm>