Date: Mon, 17 Dec 2007 08:49:21 -0500 From: Andy Greenwood <greenwood.andy@gmail.com> To: DSA - JCR <juancr@dsa.es> Cc: freebsd-questions@freebsd.org Subject: Re: How to know total number of bytes of a directory Message-ID: <47667E61.70602@gmail.com> In-Reply-To: <32989.217.114.136.135.1197898685.squirrel@mail.dsa.es> References: <32989.217.114.136.135.1197898685.squirrel@mail.dsa.es>
next in thread | previous in thread | raw e-mail | index | archive | help
DSA - JCR wrote: > Hi all > > I would like to know the total number of bytes of a directory and its > related subdirs, occupied by the files inside it. I haven't found any > command for knowning it. > # du -s /etc 17008 /etc You need read privs to all the subdirectories, otherwise you'll get permission errors and it'll skip those. Note that this displays usage in 512-byte blocks, not bytes, but you should be able to figure it out from there. > > Thanks in advance!! > > Sincerely > > Juan Coruņa > Desarrollo de Software Atlantico > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47667E61.70602>