From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 23:17:28 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35793E79 for ; Tue, 29 Apr 2014 23:17:28 +0000 (UTC) Received: from www81.your-server.de (www81.your-server.de [213.133.104.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E8B0E7EB for ; Tue, 29 Apr 2014 23:17:27 +0000 (UTC) Received: from [92.76.90.49] (helo=michael-think) by www81.your-server.de with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1WfHHA-0001aZ-MR; Wed, 30 Apr 2014 01:17:24 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-questions@freebsd.org, "Jack Stone" Subject: Re: Monitoring directories References: <536028C0.3040005@sage-american.com> Date: Wed, 30 Apr 2014 01:17:16 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Michael Ross" Message-ID: In-Reply-To: <536028C0.3040005@sage-american.com> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-Sender: gmx@ross.cx X-Virus-Scanned: Clear (ClamAV 0.98.1/18888/Tue Apr 29 23:41:56 2014) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2014 23:17:28 -0000 On Wed, 30 Apr 2014 00:33:36 +0200, Jack Stone 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 du -t 100M Michael