Date: Mon, 24 Jan 2005 10:50:38 -0500 From: Robert Huff <roberthuff@rcn.com> To: freebsd-questions@freebsd.org Subject: Re: /var is lack of space!! Message-ID: <16885.6478.271432.655623@jerusalem.litteratus.org> In-Reply-To: <20050124071628.B3660@starfire.mn.org> References: <41F4CD7F.6050308@gmail.com> <20050124071628.B3660@starfire.mn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16885.6478.271432.655623>