From owner-freebsd-questions@FreeBSD.ORG Tue Apr 29 22:53:07 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33C41B27 for ; Tue, 29 Apr 2014 22:53:07 +0000 (UTC) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12052403 for ; Tue, 29 Apr 2014 22:53:06 +0000 (UTC) Received: from [192.168.1.80] (99-111-143-21.lightspeed.crchtx.sbcglobal.net [99.111.143.21]) by mail.sagedata.net (8.14.6/8.14.6) with ESMTP id s3TMWfqB034251 for ; Tue, 29 Apr 2014 17:32:41 -0500 (CDT) (envelope-from jacks@sage-american.com) X-Authentication-Warning: mail.sagedata.net: Host 99-111-143-21.lightspeed.crchtx.sbcglobal.net [99.111.143.21] claimed to be [192.168.1.80] Message-ID: <536028C0.3040005@sage-american.com> Date: Tue, 29 Apr 2014 17:33:36 -0500 From: Jack Stone User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Monitoring directories Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Tue, 29 Apr 2014 17:32:41 -0500 X-Spam-Status: NO, hits=-10.00 required=5.00 X-Spam-Report: Content analysis details: (-10.0 points, 5.0 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | 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 22:53:07 -0000 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