OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man7 / units.7
1 .\" t
2 .\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH UNITS 7 2012\-08\-05 Linux "Linux Programmer's Manual"
32 .SH 名前
33 units, kilo, kibi, mega, mebi, giga, gibi \- 10 進および 2 進の接頭語
34 .SH 説明
35 .SS "10 進の接頭語"
36 SI 単位系では 10 の累乗を示す接頭語を用いる。 キロメートルは 1000 メートル、メガワットは 1000000 ワットである。
37 次に標準的な接頭語を示す。
38 .RS
39 .TS
40 l l l.
41 接頭語       名前  値
42 y       ヨクト(yocto)        10^\-24 = 0.000000000000000000000001
43 z       ゼプト(zepto)        10^\-21 = 0.000000000000000000001
44 a       アト(atto)    10^\-18 = 0.000000000000000001
45 f       フェムト(femto)     10^\-15 = 0.000000000000001
46 p       ピコ(pico)    10^\-12 = 0.000000000001
47 n       ナノ(nano)    10^\-9  = 0.000000001
48 u       マイクロ(micro)     10^\-6  = 0.000001
49 m       ミリ(milli)   10^\-3  = 0.001
50 c       センチ(centi)        10^\-2  = 0.01
51 d       デシ(deci)    10^\-1  = 0.1
52 da      デカ(deka)    10^ 1  = 10
53 h       ヘクト(hecto)        10^ 2  = 100
54 k       キロ(kilo)    10^ 3  = 1000
55 M       メガ(mega)    10^ 6  = 1000000
56 G       ギガ(giga)    10^ 9  = 1000000000
57 T       テラ(tera)    10^12  = 1000000000000
58 P       ペタ(peta)    10^15  = 1000000000000000
59 E       エクサ(exa)  10^18  = 1000000000000000000
60 Z       ゼタ(zetta)   10^21  = 1000000000000000000000
61 Y       ヨタ(yotta)   10^24  = 1000000000000000000000000
62 .TE
63 .RE
64
65 マイクロの記号はギリシャ文字のμであるが、 ASCII でテキストが記述されていて、ギリシャ文字が使えない場合は u と書かれることが多い。
66 以下も参考にしてほしい。
67 .sp
68 .RS
69 .UR http://physics.nist.gov\:/cuu\:/Units\:/prefixes.html
70 .UE
71 .RE
72 .SS "2 進の接頭語"
73 2 進の接頭語は 10 進の接頭語と似ているが、後ろに \(aqi\(aq が付く (また "Ki" については大文字の \(aqK\(aq)
74 で始まる)。 名前は、だいたい同じくらいの 10 進接頭語の最初の音節に、 2 進数であることを意味する "bi" を足したものになる。
75 .RS
76 .TS
77 l l l.
78 接頭語       名前  値
79 Ki      キビ(kibi)    2^10 = 1024
80 Mi      メビ(mebi)    2^20 = 1048576
81 Gi      ギビ(gibi)    2^30 = 1073741824
82 Ti      テビ(tebi)    2^40 = 1099511627776
83 Pi      ペビ(pebi)    2^50 = 1125899906842624
84 Ei      エクシビ(exbi)      2^60 = 1152921504606846976
85 .TE
86 .RE
87
88 関連項目
89 .sp
90 .UR http://physics.nist.gov\:/cuu\:/Units\:/binary.html
91 .UE
92 .SS 考察
93 これらの 2 進の接頭語が導入される前は、 k=1000 と K=1024 のように使うのが割に良く知られた習慣だった (b=ビット、B=バイト
94 の関係に似ている)。 残念ながら M は最初から大文字なので、 2 進であることを示すためにさらに大文字にすることはできなかった。
95
96 当初はこのことはあまり大きな問題ではなかった。 なぜならメモリモジュールやディスクは 2 の累乗になるものだったので、
97 皆そのようなところでは「キロバイト」を 1024 バイト、 「メガバイト」を 1048576 バイトであるとみなしていたからである。
98 最初は接頭語の「キロ」とか「メガ」を曖昧に援用していたのだが、 そのうちコンピュータに関連する話題では、こちらが「実際の意味」になっていった。
99 しかしその後ディスクのテクノロジーが代わり、 ディスクサイズは任意の数値をとるようになった。 どっちつかずの時期がしばらく続いたあと、
100 ディスクのメーカーすべてが、標準を使うことに合意した。 すなわち k=1000, M=1000k, G=1000M である。
101
102 .\" also common: 14.4k modem
103 状況はひどくなった。14.4k モデムでは k=1000, 1.44MB フロッピーでは M=1024000 になった。 1998 年に、IEC
104 は上記のような 2 進用の接頭語を承認し、 これによって両者をはっきり区別することが可能になった。
105
106 したがって今日では、MB=1000000B で、MiB = 1048576B なのである。
107
108 フリーソフトウェアの世界でも、 プログラムたちはゆっくりとこれらに準拠してきている。 Linux カーネルは、ブートすると次のようなメッセージを出す。
109
110 .RS
111 .nf
112 hda: 120064896 sectors (61473 MB) w/2048KiB Cache
113 .fi
114 .RE
115
116 MB はメガバイトで、KiB はキビバイトである。
117 .SH この文書について
118 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
119 である。プロジェクトの説明とバグ報告に関する情報は
120 http://www.kernel.org/doc/man\-pages/ に書かれている。