Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

There is inconsistency in how various operating systems display file size units. Windows shows base 2, MacOSX shows base 10. Does Ubuntu have guidelines for this?

share|improve this question
2  

1 Answer 1

up vote 11 down vote accepted

Ubuntu does have a policy for this. The basic gist is as follows:

Use base-10 for network bandwidth (e.g. 6 Mbit/s or 50 kB/s) and disk sizes (e.g. 500 GB hard drive or 4.7 GB DVD). When using base-10, follow the SI standard for prefixes (e.g. kB, MB).

Use base-2 for RAM sizes (e.g. 2 GiB RAM). When using base-2, follow the IEC standard for prefixes (e.g. KiB, MiB).

There is the library libkibi, available starting with Ubuntu 11.04, that provides helper functions for formatting sizes appropriately.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.