.\" 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