3 ms·
Mac OS X 10.6 get this right and calculate in true KB, MB and GB that is 10^3, 10^6, and 10^9 bytes. I heard that Linux also get this right and now use the KiB,
by alexk7 17y ago
Mac OS X 10.6 get this right and calculate in true KB, MB and GB that is 10^3, 10^6, and 10^9 bytes. I heard that Linux also get this right and now use the KiB, MiB and GiB prefixes for 2^10, 2^20, 2^30. Both options are good.
- ntoshev 17y agoThe latest Linux I use (Ubuntu 9.04) uses M and G prefixes. My point is it's a mess and it's unreasonable to claim proper rules are followed. E.g. how do you measure hosting bandwidth? A random calculator (http://www.ibdhost.com/help/bandwidth/ http://www.ibdhost.com/help/bandwidth/) says: 1KB = 1024B; therefore, 500MB = 512000KB = 524288000B .. and .. 1GB = 1048576000B
- tesseract 17y agoThe usual 'binary' scale goes like this: 1 kB = 1024 B, 1 MB = 1024 * 1024 B, 1 GB = 1024 * 1024 * 1024 B, etc. which may be at odds with SI but at least it's self-consistent. The page you've quoted seems to be suggesting that 1 KB = 1024 B, 1 MB = 1024 * 1024 B, and 1 GB = 1000 * 1024 * 1024 B. That seems pretty absurd to me, but maybe they're just taking a page from the book of the "1.44 MB" floppy disks which actually hold 1000 * 1024 B.
- jrockway 17y agoWhere in "Linux" do you mean? In "du" and "df", there is "-h" for powers of 2 and "--si" for powers of 10.
- alexk7 17y agoA quick Google search told me that the transition is not complete. GNU tools have options for si/iec prefixes compliance (http://www.gnu.org/software/coreutils/manual/html_node/Block-size.html#Block-size http://www.gnu.org/software/coreutils/manual/html_node/Block...) but the debate is still open elsewhere.