Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Oct 2008 23:49:33 +1100
From:      Andrew Snow <andrew@modulus.org>
To:        freebsd-stable@freebsd.org,  petefrench@ticketswitch.com
Subject:   Re: zfs quota question
Message-ID:  <48EB5ADD.2090900@modulus.org>
In-Reply-To: <200810071314.45922.max@love2party.net>
References:  <E1KnA2b-0007ls-8u@dilbert.ticketswitch.com> <200810071314.45922.max@love2party.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>I love ZFS, but I suddenly found out last night that I
> have lost the ability tto do a 'du' on a directory to work out if it will
> fit onto a CD or not :-)

I have created a shell script, /usr/local/bin/dirsize :


#!/bin/sh
find $1 -type f -ls | awk '{j += $7} END {print j}'



Usage: dirsize <path>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48EB5ADD.2090900>