How to know total number of bytes of a directory
greenwood.andy at gmail.com
Mon Dec 17 05:49:23 PST 2007
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
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
> Thanks in advance!!
> Juan Coruña
> Desarrollo de Software Atlantico
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions