print sizes in human readable format (e.g., 1K 234M 2G)
=
-h, --human-readable
以人类可读的格式打印尺寸 (例如1K 234M 2G)
-H, --si
like -h, but use powers of 1000 not 1024
=
--si
类似于-h,但使用1000的幂而不是1024
-i, --inodes
list inode usage information instead of block usage
=
--inodes
列出索引节点使用情况信息,而不是块使用情况
-k
like --block-size=1K
=
-k
像--block-size = 1K
--help
display this help and exit
=
--help
显示此帮助并退出
--version
output version information and exit
=
--version
输出版本信息并退出
Display values are in units of the first available SIZE from --block-size, and the DF_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).
~
Display values are in units of the first available SIZE from --block-size, and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).
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.
=
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.
GNU coreutils online help: <https://www.gnu.org/software/coreutils/> Full documentation <https://www.gnu.org/software/coreutils/df> or available locally via: info '(coreutils) df invocation'
~
GNU coreutils online help: <https://www.gnu.org/software/coreutils/> Full documentation <https://www.gnu.org/software/coreutils/du> or available locally via: info '(coreutils) du invocation'
FIELD_LIST is a comma-separated list of columns to be included. Valid field names are: 'source', 'fstype', 'itotal', 'iused', 'iavail', 'ipcent', 'size', 'used', 'avail', 'pcent', 'file' and 'target' (see info page).
3.2 因针对目标不同,df与du差异选项
$ df --help
Usage: df [OPTION]... [FILE]...
cn
-l, --local
limit listing to local file systems
将列表限制为本地文件系统
--sync
invoke sync before getting usage info
在获取使用情况信息之前调用同步
--no-sync
do not invoke sync before getting usage info (default)
在获取使用情况信息之前不调用同步(默认)
--output[=FIELD_LIST]
use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is omitted.
使用FIELD_LIST定义的输出格式,如果省略FIELD_LIST,则打印所有字段。
-P, --portability
use the POSIX output format
使用POSIX输出格式
--total
elide all entries insignificant to available space, and produce a grand total
排除所有与可用空间无关紧要的条目,并产生总计
-T, --print-type
print file system type
打印文件系统类型
-t, --type=TYPE
limit listing to file systems of type TYPE
将列表限制为TYPE类型的文件系统
-x, --exclude-type=TYPE
limit listing to file systems not of type TYPE
将列表限制为非TYPE类型的文件系统
-v
(ignored)
(忽略)
$ du --help
Usage: du [OPTION]... [FILE]…
or: du [OPTION]... --files0-from=F
-b, --bytes
equivalent to '--apparent-size --block-size=1'
等效于'--apparent-size --block-size = 1'
--apparent-size
print apparent sizes, rather than disk usage; although the apparent size is usually smaller, it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like
for directories do not include size of subdirectories
对于目录,不包括子目录的大小
-D, --dereference-args
dereference only symlinks that are listed on the command line
仅取消引用命令行上列出的符号链接
-L, --dereference
dereference all symbolic links
取消引用所有符号链接
-P, --no-dereference
don't follow any symbolic links (this is the default)
不要遵循任何符号链接(这是默认设置)
-H
equivalent to --dereference-args (-D)
等效于--dereference-args(-D)
-l, --count-links
count sizes many times if hard linked
如果硬链接,则多次计算大小
-d, --max-depth=N
print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize
版权声明: (CC BY-NC-SA) 署名-非商业性使用-相同方式共享 |
本许可协议允许他人基于本文进行非商业性创作,只要他们标识您的姓名或名称,并以相同条款许可他们的新作品。
Except where otherwise noted, content on this blog is licensed under the following license: CC BY-NC-SA
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· 葡萄城 AI 搜索升级:DeepSeek 加持,客户体验更智能
· 什么是nginx的强缓存和协商缓存
· 一文读懂知识蒸馏