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 |