r/AskComputerScience • • Feb 24 '26

When are Kilobytes vs. Kibibytes actually used?

I understand the distinction between the term "kilobyte" meaning exactly 1000 and the term "kibibyte" later being coined to mean 1024 to fix the misnomer, but is there actually a use for the term "kilobyte" anymore outside of showing slightly larger numbers for marketing?

As far as I am aware (which to be clear, is from very limited knowledge), data is functionally stored and read in kibibyte segments for everything, so is there ever a time when kilobytes themselves are actually a significant unit internally, or are they only ever used to redundantly translate the amount of kibibytes something has into a decimal amount to put on packaging? I've been trying to find clarification on this, but everything I come across is only clarifying the 1000 vs. 1024 bytes part, rather than the actual difference in use cases.

20 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/Imaxaroth Feb 25 '26

Windows is the only modern OS to still show kb for base 2 numbers.

2

u/Ill_Schedule_6450 Feb 25 '26

kb is for bits, if we are at it

1

u/thewiirocks Feb 25 '26

In what universe? I’m on a Mac and both Finder and “ls -lh” show the same, classic “K” or “KB” symbols they always did. Not a KiB in sight.

2

u/Imaxaroth Feb 25 '26

In ours. Finder is using base 10 prefixes since macOS X 10.6. I don't have a mac to check, but if you say the values are the same, ls should also use base 10 prefixes.

1

u/thewiirocks Feb 25 '26

Well that’s a bloody mess. The command line reports in 1024s and (doing the math) it appears Finder is indeed reporting in 1000s.

Good catch. Though I’m adding this to the list of reasons why Finder is not great. (Love my Mac, but Finder is… 😑)

1

u/flatfinger Feb 25 '26

Files on disk take up an integer number of 512-byte sectors (or 256 on some older systems), and storage media contain an integer number of such sectors. Where things go wonky is with larger units. A "1.2 meg" floppy holds 2,400 sectors of 512 bytes each, and a "1.44 meg" floppy holds 2,880 such sectors. For logical block storage devices, the logical units for megs and gigs would be 1,024,000 bytes and 1,024,000,000 bytes (a "64 gig" thumb drive will typically store data in a chip with a power-of-two number of blocks that are 528 (not 512) bytes each, but need to reserve some storage for "slack space").