The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing






The df (disk free) command displays disk usage information. It is used to show the disk usage, and some common options include:

df -h : Display disk usage in a human-readable format.
df -T : Display filesystem type.
df DIRECTORY/FILE : Display the hard disk and partition where the specified directory or file is located.

例:
$  df ← Display disk usage
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5             13172924   3837376   8655600  31% /
/dev/sda2              4956316    154760   4545724   4% /home
/dev/sda1               194442     12060    172343   7% /boot
tmpfs                   514304        12    514292   1% /dev/shm
/dev/sdb1             31210416     88736  31121680   1% /media/disk
$ df -T /home ←Display the filesystem and partition of the directory "/home"
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2     ext4     4956316    154656   4545828  34% /

For more examples and options, please refer to the provided link