Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kdum8

macrumors 6502a
Original poster
Sep 8, 2006
919
12
Tokyo, Japan
Am I correct in thinking that under OS X a kilobyte is 10^3 bytes? (The name kibibyte now referring to 2^10 bytes).

See attached image showing the info tab for a text file I have.

How can the file be 4 KB on disk and yet only 1,042 bytes of information? That seems like quite a discrepancy. Why does the text consume only 1,042 bytes of ascii information and yet take 4KB to store this to disk? What am I missing?

The file is just a plain text file written in TextEdit.
 

Attachments

  • on the byte?.png
    on the byte?.png
    53.2 KB · Views: 491
The default allocation block size in Mac OS X is 4KiB. Don't make it smaller.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.