.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH DU 1 2020年三月 "GNU coreutils 8.32" 用戶命令
.SH 名稱
du \- 估計磁盤文件使用量
.SH 概述
\fBdu\fP [\fI\,選項\/\fP]... [\fI\,文件\/\fP]...
.br
\fBdu\fP [\fI\,OPTION\/\fP]... \fI\,\-\-files0\-from=F\/\fP
.SH 描述
.\" Add any additional description here
.PP
計算每個文件的磁盤用量,目錄則取總用量。
.PP
必選參數對長短選項同時適用。
.TP
\fB\-0\fP, \fB\-\-null\fP
使每行輸出以 NUL 字符結束,不添加換行符
.TP
\fB\-a\fP, \fB\-\-all\fP
輸出所有文件的磁盤用量,不僅僅是目錄
.TP
\fB\-\-apparent\-size\fP
顯示錶面用量,而並非是磁盤用量;雖然表面用量通常會小一些,但有時它會因爲稀疏文件間的“洞”、內部碎片、非直接引用的塊等原因顯得更大一些。
.TP
\fB\-B\fP, \fB\-\-block\-size\fP=\fI\,大小\/\fP
以指定大小爲單位對塊大小進行輸出;例如,\&'\-BM' 以 1,048,576 字節爲單位輸出大小;詳情請參見下方的“SIZE 格式”部分
.TP
\fB\-b\fP, \fB\-\-bytes\fP
等效於 '\-\-apparent\-size \fB\-\-block\-size\fP=\fI\,1\/\fP'
.TP
\fB\-c\fP, \fB\-\-total\fP
顯示總計信息
.TP
\fB\-D\fP, \fB\-\-dereference\-args\fP
只在符號鏈接顯式在命令行列出時對其進行解引用
.TP
\fB\-d\fP, \fB\-\-max\-depth\fP=\fI\,N\/\fP
僅當目錄(或在 \fB\-\-all\fP 選項啓用時包括文件)層級不高於命令行參數指定的 N
層時輸出對應目錄或文件的對應大小;\fB\-\-max\-depth\fP=\fI\,0\/\fP 等效於 \fB\-\-summarize\fP
.TP
\fB\-\-files0\-from\fP=\fI\,F\/\fP
統計由文件 F 給出的由 NUL 空字符結束的文件名列表所對應各個文件的信息;如果 F 是 \-,則從標準輸入讀取文件名列表
.TP
\fB\-H\fP
和 \fB\-\-dereference\-args\fP(\fB\-D\fP)等效
.TP
\fB\-h\fP, \fB\-\-human\-readable\fP
以人類可讀的格式輸出大小(例如,1K 234M 2G)
.TP
\fB\-\-inodes\fP
列出 inode 使用信息而非塊使用信息
.TP
\fB\-k\fP
等效於 \fB\-\-block\-size\fP=\fI\,1K\/\fP
.TP
\fB\-L\fP, \fB\-\-dereference\fP
解引用所有符號鏈接
.TP
\fB\-l\fP, \fB\-\-count\-links\fP
如果是硬連接,則重複計算其尺寸
.TP
\fB\-m\fP
等效於 \fB\-\-block\-size\fP=\fI\,1M\/\fP
.TP
\fB\-P\fP, \fB\-\-no\-dereference\fP
不跟隨任何符號鏈接(默認行爲)
.TP
\fB\-S\fP, \fB\-\-separate\-dirs\fP
不包括子目錄的佔用量
.TP
\fB\-\-si\fP
類似 \-h,但使用 1000 的倍數,而非 1024
.TP
\fB\-s\fP, \fB\-\-summarize\fP
只分別計算命令列中每個參數所佔的總用量
.TP
\fB\-t\fP, \fB\-\-threshold\fP=\fI\,大小\/\fP
如果指定大小爲正值,排除比該值更小的項,或者在值爲負時排除更大的項
.TP
\fB\-\-time\fP
顯示目錄中或其子目錄下所有文件的最後修改時間
.TP
\fB\-\-time\fP=\fI\,關鍵字\/\fP
顯示指定關鍵字對應的時間而非最後修改時間:atime, access, use, ctime 或 status
.TP
\fB\-\-time\-style\fP=\fI\,格式\/\fP
使用指定格式顯示時間,格式可以爲:full\-iso, long\-iso, iso 或 +FORMAT;FORMAT 字符串以與 'date'
工具類似的方式解讀
.TP
\fB\-X\fP, \fB\-\-exclude\-from\fP=\fI\,文件\/\fP
排除所有與指定文件所提供模式匹配的文件
.TP
\fB\-\-exclude\fP=\fI\,模式\/\fP
排除所有與所給模式匹配的文件
.TP
\fB\-x\fP, \fB\-\-one\-file\-system\fP
跳過位於不同文件系統上的目錄
.TP
\fB\-\-help\fP
顯示此幫助信息並退出
.TP
\fB\-\-version\fP
顯示版本信息並退出
.PP
Display values are in units of the first available SIZE from
\fB\-\-block\-size\fP, and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment
variables. Otherwise, units default to 1024 bytes (or 512 if
POSIXLY_CORRECT is set).
.PP
The SIZE argument is an integer and optional unit (example: 10K is
10*1024). Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers
of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
.SH PATTERNS
PATTERN is a shell pattern (not a regular expression). The pattern \fB?\&\fP
matches any one character, whereas \fB*\fP matches any string (composed of
zero, one or multiple characters). For example, \fB*.o\fP will match any files
whose names end in \fB.o\fP. Therefore, the command
.IP
\fBdu \-\-exclude=\(aq*.o\(aq\fP
.PP
will skip all files and subdirectories ending in \fB.o\fP (including the file
\&\fB.o\fP itself).
.SH 作者
由 Torbjorn Granlund、David MacKenzie、Paul Eggert 和 Jim Meyering 編寫。
.SH 報告錯誤
GNU coreutils 的在線幫助:
.br
請向 報告翻譯錯誤。
.SH 版權
Copyright \(co 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL
version 3 or later .
.br
This is free software: you are free to change and redistribute it. There is
NO WARRANTY, to the extent permitted by law.
.SH 參見
完整文檔請見:
.br
或者在本地使用: info \(aq(coreutils) du invocation\(aq
.SH "跋"
.br
本頁面中文版由中文 man 手冊頁計劃提供。
.br
中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR