From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 15:54:48 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B63316A4CE for ; Mon, 24 Jan 2005 15:54:48 +0000 (GMT) Received: from smtp02.mrf.mail.rcn.net (smtp02.mrf.mail.rcn.net [207.172.4.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C37F43D54 for ; Mon, 24 Jan 2005 15:54:48 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from 209-6-197-67.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.197.67] helo=jerusalem.litteratus.org.litteratus.org) by smtp02.mrf.mail.rcn.net with esmtp (Exim 3.35 #7) id 1Ct6Y9-0001Z8-00 for freebsd-questions@freebsd.org; Mon, 24 Jan 2005 10:54:45 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16885.6478.271432.655623@jerusalem.litteratus.org> Date: Mon, 24 Jan 2005 10:50:38 -0500 To: freebsd-questions@freebsd.org In-Reply-To: <20050124071628.B3660@starfire.mn.org> References: <41F4CD7F.6050308@gmail.com> <20050124071628.B3660@starfire.mn.org> X-Mailer: VM 7.17 under 21.5 (beta16) "celeriac" XEmacs Lucid Subject: Re: /var is lack of space!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 15:54:48 -0000 John writes: > This is a good way to find out "where" the storage is being used: > cd /var ; du -s * | sort -nr | more > That will give you a list, sorted from most storage to least, of > each directory (or file) at the /var level. You can then choose > to descend into one of those, and run the command again, to drill > deeper. Technical notes: 1) given you're already at /var, the "*" is superfluous. 2) if you omit the -s, you get the "drilling down" for free: 47100 ./db 40126 ./db/pkg 13160 ./log 10738 ./log/samba 5554 ./mail 3688 ./spool 3656 ./spool/clientmqueue 2072 ./db/scrollkeeper 1648 ./db/clamav 1096 ./db/pkg/teTeX-texmf-2.0.2_3 796 ./db/pkg/linux_base-8-8.0_6 at the cost of a much longer list. I have it set up so this runs as a cron job and is waiting in the morning e-mail. Robert Huff