df 命令是一个简便的可以查看已挂载文件系统的 Linux 硬盘工具.

下面是使用示例:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on  
/dev/sda6        97G   43G   49G  48% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup  
udev            3.9G  8.0K  3.9G   1% /dev  
tmpfs           799M  1.7M  797M   1% /run  
none            5.0M     0  5.0M   0% /run/lock  
none            3.9G   12M  3.9G   1% /run/shm  
none            100M   20K  100M   1% /run/user  
/dev/sda8       196G  154G   33G  83% /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5        98G   37G   62G  38% /media/4668484A68483B47
Only the file systems that start with a /dev are actual devices or partitions.  
Use grep to filter out real hard disk partitions/file systems.  
$ df -h | grep ^/dev
/dev/sda6        97G   43G   49G  48% /
/dev/sda8       196G  154G   33G  83% /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5        98G   37G   62G  38% /media/4668484A68483B47
To display only real disk partitions along with partition type, use df like this  
$ df -h --output=source,fstype,size,used,avail,pcent,target -x tmpfs -x devtmpfs
Filesystem     Type     Size  Used Avail Use% Mounted on  
/dev/sda6      ext4      97G   43G   49G  48% /
/dev/sda8      ext4     196G  154G   33G  83% /media/13f35f59-f023-4d98-b06f-9dfaebefd6c1
/dev/sda5      fuseblk   98G   37G   62G  38% /media/4668484A68483B47

需要注意的是, df 只会列出所有已挂载的分区或者文件系统, 而不是全部.