1)df -hl
說明: -h 以G爲單位顯示
-l 不顯示NFS掛載
例如:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 28G 3.9G 22G 15% /
/dev/sda3 790G 89G 661G 12% /home
tmpfs 12G 0 12G 0% /dev/shm
2)fdisk -l 可以顯示總量
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3648 29295616 83 Linux
/dev/sda2 13055 15143 16779892+ 82 Linux swap / Solaris
/dev/sda3 15144 121601 855123885 83 Linux
/dev/sda4 3648 13054 75557889 5 Extended
/dev/sda5 3648 13054 75557888 8e Linux LVM
Partition table entries are not in disk order