1 .\" Copyright Andries Brouwer, A. Wik 1998, Ragnar Hojland Espinosa 1998-2002
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.
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>
16 .TH DU 1 "18 June 2002" "GNU fileutils 4.1"
19 .\"O du \- estimate file space usage
20 du \- ファイルのディスク使用量を見積もる
23 .BI "du [" options "] [" file... ]
29 .\"O GNU options (shortest form):
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] [\-\-]"
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
41 .\"O Here `disk space used' means space used for the entire
42 .\"O file hierarchy below the specified file.
46 それをルート (根) とする階層中にある全ディレクトリである。
47 ここで「ディスク使用量」とは、指定したファイル以下の
50 .\"O With no arguments,
52 .\"O reports the disk space for the current directory.
55 は現在のディレクトリのディスク使用量を表示する。
56 .\"O .SH "POSIX DETAILS"
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"
66 .\"O Show counts for all files encountered, not just directories.
67 ディレクトリだけでなく、全てのファイルについて容量を表示する。
70 .\"O Use 1024-byte units instead of the default 512-byte units.
71 デフォルトの 512 バイト単位の代わりに 1024 バイト単位を使用する。
74 .\"O Only output space usage for the actual arguments given,
75 .\"O not for their subdirectories.
76 実際に引き数で指定された対象による使用量のみを表示し、
77 そのサブディレクトリによる使用量は表示しない。
80 .\"O Only count space on the same device as the argument given.
81 引き数で指定されたファイルと同じディバイス上のみで使用量を集計する。
82 .\"O .SH "GNU OPTIONS"
86 .\"O Show counts for all files, not just directories.
87 ディレクトリだけでなく、全てのファイルについて容量を表示する。
90 .\"O Print sizes in bytes, overriding the default block size.
91 デフォルトのブロックサイズを無視し、バイト単位でサイズを表示する。
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 全ての引き数について使用量表示の処理をした後、
99 このオプションは、ファイル・ディレクトリのセットを与え、
100 それらのディスク総使用量を調べるために使用される。
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.
106 例えばメガバイトなら \fBM\fR のようなサイズ文字を付加する。
107 10 の累乗ではなく 2 の累乗を用いるので、
108 \fBM\fR は 1,048,576 バイトを表す。
110 .B "\-k, \-\-kilobytes"
111 .\"O Print sizes in kilobytes.
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 あるファイルが (ハードリンクとして) 既に集計されている場合を含め、
120 .B "\-m, \-\-megabytes"
121 .\"O Print sizes in megabyte (that 1,048,576 bytes) blocks.
122 メガバイト (1,048,576 バイト) 単位でサイズを表示する。
124 .B "\-s, \-\-summarize"
125 .\"O Display only a total for each argument.
126 それぞれの引き数について、総計のみを表示する。
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 ファイルシステム上にあるディレクトリを集計に含めない。
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
139 .\"O which are often symlinks.
140 コマンドライン引き数で指定したシンボリックリンクをたどる。
142 このオプションは、たいていシンボリックリンクになっている
144 のようなディレクトリのディスク使用量を調べるのに便利である。
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.
152 例えばメガバイトなら \fBM\fR のようなサイズ文字を付加する
153 (SIとは国際単位系のことで、これらの文字を接頭辞と定義している)。
154 2 の累乗ではなく 10 の累乗を用いるので、
155 \fBM\fR は 1,000,000 バイトを表す。
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
161 シンボリックリンクをたどる (シンボリックリンク自体が使用する容量の代わりに、
162 リンク先のファイルやディレクトリの使用量を表示する)。
164 .B "\-S, \-\-separate\-dirs"
165 .\"O Report the size of each directory separately, not including the
166 .\"O sizes of subdirectories.
168 個々のディレクトリの使用量を分けて表示する。
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
174 \fB\-\-exclude\fR と類似するが、
175 除外するためのパターンを \fIFILE\fR から一行ずつ取り込む。
176 \fIFILE\fR が `\fB-\fR' のときはパターンを標準入力から読み込む。
178 .B \-\-block\-size=\fISIZE
179 .\"O Set the block size to \fISIZE\fR, overriding the value of the environment
181 環境変数の値を無視し、ブロックサイズを \fISIZE\fR に設定する。
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 にマッチする名前の
189 `du \-\-exclude='*~'' の場合には `~' で終わる名前のファイルは除外される。
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 が指定されている場合はファイルも含めた)
198 ルートはレベル 0 であるので、`du \-\-max\-depth=0' は `du \-s' と等しい。
199 .\"O .SH "GNU STANDARD OPTIONS"
203 .\"O Print a usage message on standard output and exit successfully.
204 標準出力に使用方法のメッセージを出力して正常終了する。
207 .\"O Print version information on standard output, then exit successfully.
208 標準出力にバージョン情報を出力して正常終了する。
211 .\"O Terminate option list.
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
224 BSD システムでは、HP-UX システムから NFS マウントしたファイルに対して、
227 HP-UX システムでは、BSD システムから NFS マウントした
228 ファイルに対して、正しい値の 2 倍の値を表示してしまう。
229 これは HP-UX の欠陥によるもので、HP-UX の
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.
240 1024 バイト (\fBPOSIXLY_CORRECT\fRが設定されているときは 512 バイト) である。
241 この値は以下の環境変数のどれかを設定することで変更できる。
242 また、これらの環境変数の値は \fB\-\-block\-size=\fISIZE\fR が
245 .\"O In order of precedence:
247 .BR DU_BLOCK_SIZE ", " BLOCK_SIZE ", " POSIXLY_CORRECT .
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' に等しい。
262 .\"O The following letters are recognized (and used when printing with
263 .\"O \fB\-\-human\-readable\fR or \fB\-\-si\fR)
265 (また \fB\-\-human\-readable\fR と
266 \fB\-\-si\fR オプションで表示されるときに用いられる)
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
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
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
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
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
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
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
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
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
311 変数 DF_BLOCK_SIZE, BLOCK_SIZE, OSIXLY_CORRECT は
312 出力ファイルブロックサイズの選択を決定する。
313 変数 LANG, LC_ALL, LC_CTYPE, LC_MESSAGES が通常の意味を持つ。
314 .\"O .SH "CONFORMING TO"
319 .\"O Disk usage is rounded upwards, free space downwards.
320 ディスク使用量は丸めの際に繰上げられ、空き容量は繰り下げられる。
323 .\"O This page describes
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 パッケージの
332 その他のバージョンでは少し違いがあるかもしれない。
333 修正や追加は aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com
335 プログラムのバグについては bug-fileutils@gnu.org へ報告してください。