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.

選項

顯示文件列表中每一個文件所在的文件系統的信息,沒有指定文件則默認爲整個文件系統。

必選參數對長短選項同時適用。

包含僞(pseudo)、重複和無法訪問的文件系統
scale sizes by SIZE before printing them; e.g., '-BM' prints sizes in units of 1,048,576 bytes; see SIZE format below
以 1024 爲冪顯示大小(例如,1023M)
以 1000 爲冪輸出大小(例,1.1G)
顯示 inode 信息而非塊使用量
類似於 --block-size=1K
僅列出本地的文件系統
取得使用量數據前不進行同步動作(默認)
使用域列表定義的輸出格式,如果不指定域列表,則輸出所有域
使用 POSIX 輸出格式
取得使用量數據前先進行同步(sync)
elide all entries insignificant to available space, and produce a grand total
只顯示指定文件系統爲指定類型的信息
顯示文件系統類型
只顯示不是指定類型的文件系統的信息
(被忽略的選項)
顯示此幫助信息並退出
顯示版本信息並退出

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