df - report file system disk space usage - 文件系統磁盤空間使用情況
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.
df
顯示包含每個文件名參數的文件系統上可用的磁盤空間量。如果未提供文件名,則會顯示所有當前已掛載文件系統上的可用空間。默認情況下,磁盤空間以 1K 塊顯示,除非設置了環境變量 POSIXLY_CORRECT
,在這種情況下使用 512 字節塊。
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.
如果參數是包含已掛載文件系統的磁盤設備節點的絕對文件名,則 df
顯示該文件系統上而不是包含設備節點的文件系統上的可用空間。
Show information about the file system on which each FILE resides, or all file systems by default.
顯示有關每個 FILE 所在的文件系統或默認情況下所有文件系統的信息。
Mandatory arguments to long options are mandatory for short options too.
長選項的強制性參數對於短選項也是必需的。
(base) yongqiang@yongqiang:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 109846524 72211996 37634528 66% /
none 109846524 72211996 37634528 66% /dev
none 109846524 72211996 37634528 66% /run
none 109846524 72211996 37634528 66% /run/lock
none 109846524 72211996 37634528 66% /run/shm
none 109846524 72211996 37634528 66% /run/user
C: 109846524 72211996 37634528 66% /mnt/c
D: 262143996 5712844 256431152 3% /mnt/d
E: 335544316 21217500 314326816 7% /mnt/e
F: 167772156 16833548 150938608 11% /mnt/f
(base) yongqiang@yongqiang:~$
-a, --all
include pseudo, duplicate, inaccessible file systems
(base) yongqiang@yongqiang:~$ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 109846524 76268644 33577880 70% /
none 109846524 76268644 33577880 70% /dev
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
devpts 0 0 0 - /dev/pts
none 109846524 76268644 33577880 70% /run
none 109846524 76268644 33577880 70% /run/lock
none 109846524 76268644 33577880 70% /run/shm
none 109846524 76268644 33577880 70% /run/user
binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc
C: 109846524 76268644 33577880 70% /mnt/c
D: 262143996 5712844 256431152 3% /mnt/d
E: 335544316 21217500 314326816 7% /mnt/e
F: 167772156 16833548 150938608 11% /mnt/f
(base) yongqiang@yongqiang:~$
pseudo /ˈsuːdəʊ; ˈsjuːdəʊ/:n. 僞君子,假冒的人 adj. 冒充的,假的
-h, --human-readable
print sizes in powers of 1024 (e.g., 1023M)
1024 單位
(base) yongqiang@yongqiang:~$ df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 105G 70G 36G 67% /
none 105G 70G 36G 67% /dev
none 105G 70G 36G 67% /run
none 105G 70G 36G 67% /run/lock
none 105G 70G 36G 67% /run/shm
none 105G 70G 36G 67% /run/user
C: 105G 70G 36G 67% /mnt/c
D: 250G 5.5G 245G 3% /mnt/d
E: 320G 21G 300G 7% /mnt/e
F: 160G 17G 144G 11% /mnt/f
(base) yongqiang@yongqiang:~$
-H, --si
print sizes in powers of 1000 (e.g., 1.1G)
1000 單位
(base) yongqiang@yongqiang:~$ df -H
Filesystem Size Used Avail Use% Mounted on
rootfs 113G 75G 38G 67% /
none 113G 75G 38G 67% /dev
none 113G 75G 38G 67% /run
none 113G 75G 38G 67% /run/lock
none 113G 75G 38G 67% /run/shm
none 113G 75G 38G 67% /run/user
C: 113G 75G 38G 67% /mnt/c
D: 269G 5.9G 263G 3% /mnt/d
E: 344G 22G 322G 7% /mnt/e
F: 172G 18G 155G 11% /mnt/f
(base) yongqiang@yongqiang:~$