OSDN Git Service

Convert release and draft pages to UTF-8.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / du.1
1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
2 .\"
3 .\" This file may be copied under the conditions described
4 .\" in the LDP GENERAL PUBLIC LICENSE, Version 1, September 1998
5 .\" that should have been distributed together with this file.
6 .\"
7 .\" Japanese Version Copyright (c) 1999-2003 Yuichi SATO
8 .\"         all rights reserved.                                   
9 .\" Translated Sun Oct 17 18:05:20 JST 1999
10 .\"         by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
11 .\" Updated & Modified Sun Feb 23 00:55:58 JST 2003
12 .\"         by Yuichi SATO <ysato444@yahoo.co.jp>
13 .\" 
14 .\"WORD:        report          表示する
15 .\" 
16 .TH DU 1 "18 June 2002" "GNU fileutils 4.1"
17 .\"O .SH NAME
18 .SH 名前
19 .\"O du \- estimate file space usage
20 du \- ファイルのディスク使用量を見積もる
21 .\"O .SH SYNOPSIS
22 .SH 書式
23 .BI "du [" options "] [" file... ]
24 .sp
25 .\"O POSIX options:
26 POSIX オプション:
27 .B [\-askx]
28 .sp
29 .\"O GNU options (shortest form):
30 GNU オプション (簡略形式):
31 .B [\-abchklmsxDHLS] [\-X \fIFILE\fB]
32 .B [\-\-block\-size=\fISIZE\fB] [\-\-max\-depth=\fIDEPTH\fB]
33 .B [\-\-exclude=\fIPATTERN\fB]
34 .B "[\-\-help] [\-\-version] [\-\-]"
35 .\"O .SH DESCRIPTION
36 .SH 説明
37 .\"O .B du
38 .\"O reports the amount of disk space used by the specified files,
39 .\"O and by each directory in the hierarchies rooted at the
40 .\"O specified files.
41 .\"O Here `disk space used' means space used for the entire
42 .\"O file hierarchy below the specified file.
43 .B du
44 はディスクの使用量を表示する。
45 対象は指定したファイルと、
46 それをルート (根) とする階層中にある全ディレクトリである。
47 ここで「ディスク使用量」とは、指定したファイル以下の
48 全ファイル階層による使用量を意味する。
49 .PP
50 .\"O With no arguments,
51 .\"O .B du
52 .\"O reports the disk space for the current directory.
53 引き数がない場合、
54 .B du
55 は現在のディレクトリのディスク使用量を表示する。
56 .\"O .SH "POSIX DETAILS"
57 .SH "POSIX 詳細"
58 .\"O The output is in 512-byte units by default, but in
59 .\"O 1024-byte units when the \-k option is given.
60 出力はデフォルトでは 512 バイト単位であるが、
61 \-k オプションが指定された場合は 1024 バイト単位になる。
62 .\"O .SH "POSIX OPTIONS"
63 .SH "POSIX オプション"
64 .TP
65 .B "\-a"
66 .\"O Show counts for all files encountered, not just directories.
67 ディレクトリだけでなく、全てのファイルについて容量を表示する。
68 .TP
69 .B "\-k"
70 .\"O Use 1024-byte units instead of the default 512-byte units.
71 デフォルトの 512 バイト単位の代わりに 1024 バイト単位を使用する。
72 .TP
73 .B "\-s"
74 .\"O Only output space usage for the actual arguments given,
75 .\"O not for their subdirectories.
76 実際に引き数で指定された対象による使用量のみを表示し、
77 そのサブディレクトリによる使用量は表示しない。
78 .TP
79 .B "\-x"
80 .\"O Only count space on the same device as the argument given.
81 引き数で指定されたファイルと同じディバイス上のみで使用量を集計する。
82 .\"O .SH "GNU OPTIONS"
83 .SH "GNU オプション"
84 .TP
85 .B "\-a, \-\-all"
86 .\"O Show counts for all files, not just directories.
87 ディレクトリだけでなく、全てのファイルについて容量を表示する。
88 .TP
89 .B "\-b, \-\-bytes"
90 .\"O Print sizes in bytes, overriding the default block size.
91 デフォルトのブロックサイズを無視し、バイト単位でサイズを表示する。
92 .TP
93 .B "\-c, \-\-total"
94 .\"O Print a grand total of all arguments after all arguments have been
95 .\"O processed.  This can be used to find out the total disk usage of a
96 .\"O given set of files or directories.
97 全ての引き数について使用量表示の処理をした後、
98 全ての引き数の使用量の総計を表示する。
99 このオプションは、ファイル・ディレクトリのセットを与え、
100 それらのディスク総使用量を調べるために使用される。
101 .TP
102 .B "\-h, \-\-human\-readable"
103 .\"O Append a size letter such as \fBM\fR for megabytes to each size.
104 .\"O Powers of 2 are used, not 10; \fBM\fR stands for 1,048,576 bytes.
105 それぞれのサイズに、
106 例えばメガバイトなら \fBM\fR のようなサイズ文字を付加する。
107 10 の累乗ではなく 2 の累乗を用いるので、
108 \fBM\fR は 1,048,576 バイトを表す。
109 .TP
110 .B "\-k, \-\-kilobytes"
111 .\"O Print sizes in kilobytes.
112 サイズをキロバイト単位で表示する。
113 .TP
114 .B "\-l, \-\-count\-links"
115 .\"O Count the size of all files, even if they have appeared already
116 .\"O (as a hard link).
117 あるファイルが (ハードリンクとして) 既に集計されている場合を含め、
118 全てのファイルの使用量を集計する。
119 .TP
120 .B "\-m, \-\-megabytes"
121 .\"O Print sizes in megabyte (that 1,048,576 bytes) blocks.
122 メガバイト (1,048,576 バイト) 単位でサイズを表示する。
123 .TP
124 .B "\-s, \-\-summarize"
125 .\"O Display only a total for each argument.
126 それぞれの引き数について、総計のみを表示する。
127 .TP
128 .B "\-x, \-\-one\-file\-system"
129 .\"O Skip directories that are on different filesystems from the one
130 .\"O that the argument being processed is on.
131 引き数で指定されたファイルのあるファイルシステムとは異なる
132 ファイルシステム上にあるディレクトリを集計に含めない。
133 .TP
134 .B "\-D, \-\-dereference\-args"
135 .\"O Dereference symlinks that are command line arguments.  Does
136 .\"O not affect other symlinks.  This is helpful for finding out
137 .\"O the disk usage of directories, such as
138 .\"O .IR /usr/tmp ,
139 .\"O which are often symlinks.
140 コマンドライン引き数で指定したシンボリックリンクをたどる。
141 他のシンボリックリンクはたどらない。
142 このオプションは、たいていシンボリックリンクになっている
143 .IR /usr/tmp
144 のようなディレクトリのディスク使用量を調べるのに便利である。
145 .TP
146 .B \-H, \-\-si
147 .\"O Append a size letter such as \fBM\fR for megabytes to each size.  (SI
148 .\"O is the International System of Units, which defines these letters
149 .\"O as prefixes)  Powers of 10 are used, not 2; \fBM\fR stands for
150 .\"O 1,000,000 bytes.
151 それぞれのサイズに、
152 例えばメガバイトなら \fBM\fR のようなサイズ文字を付加する
153 (SIとは国際単位系のことで、これらの文字を接頭辞と定義している)。
154 2 の累乗ではなく 10 の累乗を用いるので、
155 \fBM\fR は 1,000,000 バイトを表す。
156 .TP
157 .B "\-L, \-\-dereference"
158 .\"O Dereference symlinks (show the disk space used by the file
159 .\"O or directory that the link points to instead of the space used by
160 .\"O the link).
161 シンボリックリンクをたどる (シンボリックリンク自体が使用する容量の代わりに、
162 リンク先のファイルやディレクトリの使用量を表示する)。
163 .TP
164 .B "\-S, \-\-separate\-dirs"
165 .\"O Report the size of each directory separately, not including the
166 .\"O sizes of subdirectories.
167 サブディレクトリの使用量を含めずに、
168 個々のディレクトリの使用量を分けて表示する。
169 .TP
170 .B \-X \fIFILE\fB, \-\-exclude\-from=\fIFILE
171 .\"O As \fB\-\-exclude\fR, except take the patterns to exclude from \fIFILE\fR,
172 .\"O one per line.  If \fIFILE\fR is `\fB-\fR', read the patterns from standard
173 .\"O input.
174 \fB\-\-exclude\fR と類似するが、
175 除外するためのパターンを \fIFILE\fR から一行ずつ取り込む。
176 \fIFILE\fR が `\fB-\fR' のときはパターンを標準入力から読み込む。
177 .TP
178 .B \-\-block\-size=\fISIZE
179 .\"O Set the block size to \fISIZE\fR, overriding the value of the environment
180 .\"O variables.
181 環境変数の値を無視し、ブロックサイズを \fISIZE\fR に設定する。
182 .TP
183 .B \-\-exclude=\fIPATTERN
184 .\"O When recursing, skip subdirectories or 
185 .\"O files matching pattern \fIPATTERN\fR.
186 .\"O For example, `du \-\-exclude='*~'' excludes files whose names end in `~'
187 再帰的に集計する際、\fIPATTERN\fR にマッチする名前の
188 サブディレクトリやファイルを除外する。
189 `du \-\-exclude='*~'' の場合には `~' で終わる名前のファイルは除外される。
190 .TP
191 .B \-\-max\-depth=\fIDEPTH
192 .\"O Show the total for each directory (and file if \fB\-all\fR) that is at
193 .\"O most \fIDEPTH\fR depth levels down from the root of the hierarchy.  The
194 .\"O root is at level 0, so `du \-\-max\-depth=0' is equivalent to `du \-s'.
195 階層のルートから深さレベルが最大 \fIDEPTH\fR までにある
196 各ディレクトリの (\fB\-all\fR が指定されている場合はファイルも含めた)
197 ディスク使用量の合計を表示する。
198 ルートはレベル 0 であるので、`du \-\-max\-depth=0' は `du \-s' と等しい。
199 .\"O .SH "GNU STANDARD OPTIONS"
200 .SH "GNU 標準オプション"
201 .TP
202 .B "\-\-help"
203 .\"O Print a usage message on standard output and exit successfully.
204 標準出力に使用方法のメッセージを出力して正常終了する。
205 .TP
206 .B "\-\-version"
207 .\"O Print version information on standard output, then exit successfully.
208 標準出力にバージョン情報を出力して正常終了する。
209 .TP
210 .B "\-\-"
211 .\"O Terminate option list.
212 オプションリストの終りを示す。
213 .\"O .SH BUGS
214 .SH バグ
215 .\"O On BSD systems,
216 .\"O .B du
217 .\"O reports sizes that are half the correct values
218 .\"O for files that are NFS-mounted from HP-UX systems.  On HP-UX systems,
219 .\"O it reports sizes that are twice the correct values for files that are
220 .\"O NFS-mounted from BSD systems.  This is due to a flaw in HP-UX; it also
221 .\"O affects the HP-UX
222 .\"O .B du
223 .\"O program.
224 BSD システムでは、HP-UX システムから NFS マウントしたファイルに対して、
225 .B du
226 は正しい値の半分の値を表示してしまう。
227 HP-UX システムでは、BSD システムから NFS マウントした
228 ファイルに対して、正しい値の 2 倍の値を表示してしまう。
229 これは HP-UX の欠陥によるもので、HP-UX の 
230 .B du
231 プログラムにも影響を及ぼしている。
232 .\"O .SH BLOCK SIZE
233 .SH ブロックサイズ
234 .\"O The default output file block size is 1024 bytes 
235 .\"O (or 512 if \fBPOSIXLY_CORRECT\fR).
236 .\"O You may change this value by setting any of the following environment
237 .\"O variables, which are overriden 
238 .\"O if a \fB\-\-block\-size=\fISIZE\fR is given.
239 デフォルトの出力ファイルブロックサイズは
240 1024 バイト (\fBPOSIXLY_CORRECT\fRが設定されているときは 512 バイト) である。
241 この値は以下の環境変数のどれかを設定することで変更できる。
242 また、これらの環境変数の値は \fB\-\-block\-size=\fISIZE\fR が
243 オプションに与えられると無視される。
244 .TP
245 .\"O In order of precedence:
246 優先順位:
247 .BR DU_BLOCK_SIZE ", " BLOCK_SIZE ", " POSIXLY_CORRECT .
248 .PP
249 .\"O The values for these variables can be either a number, 
250 .\"O \fBhuman\-readable\fR, or \fBsi\fR.  
251 .\"O Numbers may be followed by a size letter to specify a multiple of that
252 .\"O size, and a \fBB\fR to select normal bytes or a \fBD\fR to select
253 .\"O decimal "commercial" bytes.  For example `BLOCK_SIZE=1KB' is equal to
254 .\"O `BLOCK_SIZE=1024' and `BLOCK_SIZE=1KD' is equal to `BLOCK_SIZE=1000'
255 これらの変数の値は、数字でも \fBhuman\-readable\fR でも \fBsi\fR でもよい。
256 数字の後には、何倍であるかを指定するサイズ文字と、
257 通常のバイトを選択する \fBB\fR または
258 10 進の「商業用」バイトを選択する \fBD\fR を続けてもよい。
259 たとえば、`BLOCK_SIZE=1KB' は `BLOCK_SIZE=1024' に等しく、
260 `BLOCK_SIZE=1KD' は `BLOCK_SIZE=1000' に等しい。
261
262 .\"O The following letters are recognized (and used when printing with
263 .\"O \fB\-\-human\-readable\fR or \fB\-\-si\fR)
264 以下の文字が認識される 
265 (また \fB\-\-human\-readable\fR と 
266 \fB\-\-si\fR オプションで表示されるときに用いられる)
267 .TP
268 .B k
269 .\"O kilo: 2^10 = 1024 for \fB\-\-human-readable\fR, or 10^3 = 1000 for \fB\-\-si\fR
270 キロ: \fB\-\-human-readable\fR なら 2^10 = 1024、
271 \fB\-\-si\fR なら 10^3 = 1000 
272 .TP
273 .B M
274 .\"O Mega: 2^20 = 1,048,576 or 10^6 = 1,000,000
275 メガ: 2^20 = 1,048,576 または 10^6 = 1,000,000
276 .TP
277 .B G
278 .\"O Giga: 2^30 = 1,073,741,824 or 10^9 = 1,000,000,000
279 ギガ: 2^30 = 1,073,741,824 または 10^9 = 1,000,000,000
280 .TP
281 .B T
282 .\"O Tera: 2^40 = 1,099,511,627,776 or 10^12 = 1,000,000,000,000
283 テラ: 2^40 = 1,099,511,627,776 または 10^12 = 1,000,000,000,000
284 .TP
285 .B P
286 .\"O Peta: 2^50 = 1,125,899,906,842,624 or 10^15 = 1,000,000,000,000,000
287 ペタ: 2^50 = 1,125,899,906,842,624 または 10^15 = 1,000,000,000,000,000
288 .TP
289 .B E
290 .\"O Exa: 2^60 = 1,152,921,504,606,846,976 or 10^18 = 1,000,000,000,000,000,000
291 エクサ: 2^60 = 1,152,921,504,606,846,976 または 
292 10^18 = 1,000,000,000,000,000,000
293 .TP
294 .B Z
295 .\"O Zetta: 2^70 = 1,180,591,620,717,411,303,424 or 10^21 =
296 .\"O 1,000,000,000,000,000,000,000
297 ゼタ: 2^70 = 1,180,591,620,717,411,303,424 または 10^21 =
298 1,000,000,000,000,000,000,000
299 .TP
300 .B Y
301 .\"O Yotta: 2^80 = 1,208,925,819,614,629,174,706,176 or 10^24 =
302 .\"O 1,000,000,000,000,000,000,000,000
303 ヨタ: 2^80 = 1,208,925,819,614,629,174,706,176 または 10^24 =
304 1,000,000,000,000,000,000,000,000
305 .\"O .SH ENVIRONMENT
306 .SH 環境変数
307 .\"O The variables DU_BLOCK_SIZE, BLOCK_SIZE and POSIXLY_CORRECT determine the
308 .\"O choice of the output file block size.
309 .\"O The variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES have the
310 .\"O usual meaning.
311 変数 DF_BLOCK_SIZE, BLOCK_SIZE, OSIXLY_CORRECT は
312 出力ファイルブロックサイズの選択を決定する。
313 変数 LANG, LC_ALL, LC_CTYPE, LC_MESSAGES が通常の意味を持つ。
314 .\"O .SH "CONFORMING TO"
315 .SH 準拠
316 POSIX 1003.2
317 .\"O .SH NOTES
318 .SH 注意
319 .\"O Disk usage is rounded upwards, free space downwards.
320 ディスク使用量は丸めの際に繰上げられ、空き容量は繰り下げられる。
321 .\"O 
322 .PP
323 .\"O This page describes
324 .\"O .B du
325 .\"O as found in the fileutils-4.1 package;
326 .\"O other versions may differ slightly. Mail corrections and additions to
327 .\"O aeb@cwi.nl and aw@mail1.bet1.puv.fi and ragnar@ragnar-hojland.com
328 .\"O Report bugs in the program to bug-fileutils@gnu.org.
329 このページは fileutils-4.1 パッケージの
330 .B du
331 コマンドについて説明したものである;
332 その他のバージョンでは少し違いがあるかもしれない。
333 修正や追加は aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
334 宛にメールで連絡してください。
335 プログラムのバグについては bug-fileutils@gnu.org へ報告してください。