DU(1) | 用户命令 | DU(1) |
du - 估计磁盘文件使用量
du [选项]...
[文件]...
du [选项]... --files0-from=F
计算每个文件的设备用量,目录则取总用量。
必选参数对长短选项同时适用。
所显示的数值的单位是 --block-size 选项的参数、DU_BLOCK_SIZE、BLOCK_SIZE 和 BLOCKSIZE 环境变量的值中,第一个可用的大小。否则,默认单位是 1024 字节(如果 POSIXLY_CORRECT 被设定,则为 512 字节)。
大小 参数是一个整数,后面可以跟一个单位(例如:10K 指 10*1024)。可用的单位有 K、M、G、T、P、E、Z、Y(1024 的幂)以及 KB、MB、...(1000 的幂)。也可以使用二进制前缀:KiB=K、MiB=M,以此类推。
PATTERN is a shell pattern (not a regular expression). The pattern ? matches any one character, whereas * matches any string (composed of zero, one or multiple characters). For example, *.o will match any files whose names end in .o. Therefore, the command
will skip all files and subdirectories ending in .o (including the file .o itself).
由 Torbjorn Granlund、David MacKenzie、Paul Eggert 和 Jim Meyering 编写。
GNU coreutils 的在线帮助:
<https://www.gnu.org/software/coreutils/>
请向 <https://translationproject.org/team/zh_CN.html>
报告翻译错误。
Copyright © 2022 Free Software Foundation, Inc. License
GPLv3+: GNU GPL version 3 or later
<https://gnu.org/licenses/gpl.html>.
本软件是自由软件:您可以自由修改和重新发布它。在法律允许的范围内,不提供任何保证。
完整文档请见:
<https://www.gnu.org/software/coreutils/du>
或者在本地使用: info
'(coreutils) du invocation'
本页面中文版由中文
man 手册页计划提供。
中文 man
手册页计划:https://github.com/man-pages-zh/manpages-zh
2022年9月 | GNU coreutils 9.1 |