| 1 |
'\" t |
| 2 |
.\" Copyright 2001, Andries E. Brouwer <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 6 |
.\" |
| 7 |
.TH units 7 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
units \- decimal and binary prefixes |
| 10 |
.SH DESCRIPTION |
| 11 |
.SS Decimal prefixes |
| 12 |
The SI system of units uses prefixes that indicate powers of ten. |
| 13 |
A kilometer is 1000 meter, and a megawatt is 1000000 watt. |
| 14 |
Below the standard prefixes. |
| 15 |
.RS |
| 16 |
.TS |
| 17 |
l l l. |
| 18 |
Prefix Name Value |
| 19 |
q quecto 10\[ha]\-30 = 0.000000000000000000000000000001 |
| 20 |
r ronto 10\[ha]\-27 = 0.000000000000000000000000001 |
| 21 |
y yocto 10\[ha]\-24 = 0.000000000000000000000001 |
| 22 |
z zepto 10\[ha]\-21 = 0.000000000000000000001 |
| 23 |
a atto 10\[ha]\-18 = 0.000000000000000001 |
| 24 |
f femto 10\[ha]\-15 = 0.000000000000001 |
| 25 |
p pico 10\[ha]\-12 = 0.000000000001 |
| 26 |
n nano 10\[ha]\-9 = 0.000000001 |
| 27 |
\[mc] micro 10\[ha]\-6 = 0.000001 |
| 28 |
m milli 10\[ha]\-3 = 0.001 |
| 29 |
c centi 10\[ha]\-2 = 0.01 |
| 30 |
d deci 10\[ha]\-1 = 0.1 |
| 31 |
da deka 10\[ha] 1 = 10 |
| 32 |
h hecto 10\[ha] 2 = 100 |
| 33 |
k kilo 10\[ha] 3 = 1000 |
| 34 |
M mega 10\[ha] 6 = 1000000 |
| 35 |
G giga 10\[ha] 9 = 1000000000 |
| 36 |
T tera 10\[ha]12 = 1000000000000 |
| 37 |
P peta 10\[ha]15 = 1000000000000000 |
| 38 |
E exa 10\[ha]18 = 1000000000000000000 |
| 39 |
Z zetta 10\[ha]21 = 1000000000000000000000 |
| 40 |
Y yotta 10\[ha]24 = 1000000000000000000000000 |
| 41 |
R ronna 10\[ha]27 = 1000000000000000000000000000 |
| 42 |
Q quetta 10\[ha]30 = 1000000000000000000000000000000 |
| 43 |
.TE |
| 44 |
.RE |
| 45 |
.P |
| 46 |
The symbol for micro is the Greek letter mu, often written u |
| 47 |
in an ASCII context where this Greek letter is not available. |
| 48 |
.SS Binary prefixes |
| 49 |
The binary prefixes resemble the decimal ones, |
| 50 |
but have an additional \[aq]i\[aq] |
| 51 |
(and "Ki" starts with a capital \[aq]K\[aq]). |
| 52 |
The names are formed by taking the |
| 53 |
first syllable of the names of the decimal prefix with roughly the same |
| 54 |
size, followed by "bi" for "binary". |
| 55 |
.RS |
| 56 |
.TS |
| 57 |
l l l. |
| 58 |
Prefix Name Value |
| 59 |
Ki kibi 2\[ha]10 = 1024 |
| 60 |
Mi mebi 2\[ha]20 = 1048576 |
| 61 |
Gi gibi 2\[ha]30 = 1073741824 |
| 62 |
Ti tebi 2\[ha]40 = 1099511627776 |
| 63 |
Pi pebi 2\[ha]50 = 1125899906842624 |
| 64 |
Ei exbi 2\[ha]60 = 1152921504606846976 |
| 65 |
Zi zebi 2\[ha]70 = 1180591620717411303424 |
| 66 |
Yi yobi 2\[ha]80 = 1208925819614629174706176 |
| 67 |
.TE |
| 68 |
.RE |
| 69 |
.SS Discussion |
| 70 |
Before these binary prefixes were introduced, it was fairly |
| 71 |
common to use k=1000 and K=1024, just like b=bit, B=byte. |
| 72 |
Unfortunately, the M is capital already, and cannot be |
| 73 |
capitalized to indicate binary-ness. |
| 74 |
.P |
| 75 |
At first that didn't matter too much, since memory modules |
| 76 |
and disks came in sizes that were powers of two, so everyone |
| 77 |
knew that in such contexts "kilobyte" and "megabyte" meant |
| 78 |
1024 and 1048576 bytes, respectively. |
| 79 |
What originally was a |
| 80 |
sloppy use of the prefixes "kilo" and "mega" started to become |
| 81 |
regarded as the "real true meaning" when computers were involved. |
| 82 |
But then disk technology changed, and disk sizes became arbitrary numbers. |
| 83 |
After a period of uncertainty all disk manufacturers settled on the |
| 84 |
standard, namely k=1000, M=1000\ k, G=1000\ M. |
| 85 |
.P |
| 86 |
The situation was messy: in the 14k4 modems, k=1000; in the 1.44\ MB |
| 87 |
.\" also common: 14.4k modem |
| 88 |
diskettes, M=1024000; and so on. |
| 89 |
In 1998 the IEC approved the standard |
| 90 |
that defines the binary prefixes given above, enabling people |
| 91 |
to be precise and unambiguous. |
| 92 |
.P |
| 93 |
Thus, today, MB = 1000000\ B and MiB = 1048576\ B. |
| 94 |
.P |
| 95 |
In the free software world programs are slowly |
| 96 |
being changed to conform. |
| 97 |
When the Linux kernel boots and says |
| 98 |
.P |
| 99 |
.in +4n |
| 100 |
.EX |
| 101 |
hda: 120064896 sectors (61473 MB) w/2048KiB Cache |
| 102 |
.EE |
| 103 |
.in |
| 104 |
.P |
| 105 |
the MB are megabytes and the KiB are kibibytes. |
| 106 |
.SH SEE ALSO |
| 107 |
.UR https:\://www.bipm.org/\:documents/\:20126/\:41483022/\:SI\-Brochure\-9.pdf |
| 108 |
The International System of Units |
| 109 |
.UE . |