Scroll to navigation

DF(1) 用户命令 DF(1)

名称

df - 报告文件系统磁盘空间使用情况

概述

df [选项列表]... [文件列表]...

描述

This manual page documents the GNU version of df. df displays the amount of disk space available on the file system containing each file name argument. If no file name is given, the space available on all currently mounted file systems is shown. Disk space is shown in 1K blocks by default, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.

If an argument is the absolute file name of a disk device node containing a mounted file system, df shows the space available on that file system rather than on the file system containing the device node. This version of df cannot show the space available on unmounted file systems, because on most kinds of systems doing so requires very nonportable intimate knowledge of file system structures.

选项

显示文件列表中每一个文件所在的文件系统的信息,没有指定文件则默认为整个文件系统。

必选参数对长短选项同时适用。

-a, --all
包含伪(pseudo)、重复和无法访问的文件系统
-B, --block-size=大小
scale sizes by SIZE before printing them; e.g., '-BM' prints sizes in units of 1,048,576 bytes; see SIZE format below
-h, --human-readable
以 1024 为幂显示大小(例如,1023M)
-H, --si
以 1000 为幂输出大小(例,1.1G)
-i, --inodes
显示 inode 信息而非块使用量
-k
类似于 --block-size=1K
-l, --local
仅列出本地的文件系统
--no-sync
取得使用量数据前不进行同步动作(默认)
--output[=域列表]
使用域列表定义的输出格式,如果不指定域列表,则输出所有域
-P, --portability
使用 POSIX 输出格式
--sync
取得使用量数据前先进行同步(sync)
--total
elide all entries insignificant to available space, and produce a grand total
-t, --type=类型
只显示指定文件系统为指定类型的信息
-T, --print-type
显示文件系统类型
-x, --exclude-type=类型
只显示不是指定类型的文件系统的信息
-v
(被忽略的选项)
--help
显示此帮助信息并退出
--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).

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.

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).

作者

由 Torbjorn Granlund、David MacKenzie 和 Paul Eggert 编写。

报告错误

GNU coreutils 的在线帮助: <https://www.gnu.org/software/coreutils/>
请向 <https://translationproject.org/team/zh_CN.html> 报告翻译错误。

版权

Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

参见

完整文档请见: <https://www.gnu.org/software/coreutils/df>
或者在本地使用: info '(coreutils) df invocation'

本页面中文版由中文 man 手册页计划提供。
中文 man 手册页计划:https://github.com/man-pages-zh/manpages-zh
2020年三月 GNU coreutils 8.32