Whatever you do, be careful about interpreting the results. In general, a file takes more space on disk than the file size itself would indicate. Files are stored on disk in clusters, which is some whole multiple of 512 or 1024 bytes (= one sector). The size of a cluster is related to the disk size, in general, the larger the disk, the larger the cluster size. A value of 16 to 32k is quite common.
Thus, even if your file is only 1 byte long, it will take up a whole cluster. In a similar way, if your file is just 1 byte too big to fit into one cluster, it will take up two.
In pop speak: you should round up the file size for each to the next multiple of the cluster size, and only add up those results. Only that result will actually tell you how much space is taken up by a directory.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.