Date: Fri, 11 May 2001 01:23:47 +0100 From: umarumohammed@hg15.btinternet.com <umarumohammed@btinternet.com> To: Linh Pham <lplist@closedsrc.org> Cc: freebsd-questions@FreeBSD.org Subject: Re: du - It Doesn't Add Up? Message-ID: <E14y0he-00046A-00@gadolinium.btinternet.com>
next in thread | raw e-mail | index | archive | help
10/05/01 23:07:54, Linh Pham <lplist@closedsrc.org> wrote: >On 2001-05-10, Drew Tomlinson scribbled: <snip> ># 117 Blacksheep# du -hc /etc <\snip> Here you have specified a directory to perform du on - so the total (-c option) will be for the contents below this directory. du will recursively descend this directory and list all files within, and print their sizes in human readable format (-h option)... <snip> ># 97K /etc/defaults ># 32K /etc/periodic/daily ># 11K /etc/periodic/weekly ># 3.0K /etc/periodic/monthly ># 47K /etc/periodic ># 4.0K /etc/ssh ># 9.0K /etc/ssl ># 2.0K /etc/gnats ># 34K /etc/isdn ># 1.0K /etc/kerberosIV ># 148K /etc/mail ># 44K /etc/mtree ># 10.0K /etc/namedb ># 5.0K /etc/ppp ># 1.0K /etc/skel ># 17K /etc/uucp ># 12M /etc ># 12M total ># ># If I add up the numbers, I only get a total of 462K, not 12M as indicated. ># What am I missing? > <\snip> I think the -a option make du list files along with directories, here you only get a directory listing. <snip> >The `12M /etc' line means that /etc altogether is 12M (probably have a >large file directly under /etc?) > <\snip> No, etc is a directory, 12M is the size of the directory including all its contents. Kindest regards, --ibs. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E14y0he-00046A-00>