显示磁盘使用情况
[hadoopuser@CNSZ443239 ~]$ df
文件系统 1K-块 已用 可用 已用% 挂载点
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-root_lv % /
tmpfs % /dev/shm
/dev/mapper/rootvg-was_lv % /websphere
/dev/sda1 % /boot
/dev/mapper/rootvg-tmp_lv % /tmp
10.14.49.126:/UAT1_shared % /home/ap/ods/shared
以inode模式来显示磁盘使用情况
[hadoopuser@CNSZ443239 ~]$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/rootvg-root_lv % /
tmpfs % /dev/shm
/dev/mapper/rootvg-was_lv % /websphere
/dev/sda1 % /boot
/dev/mapper/rootvg-tmp_lv % /tmp
显示指定类型磁盘
[hadoopuser@CNSZ443239 ~]$ df -t ext4
文件系统 1K-块 已用 可用 已用% 挂载点
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-root_lv % /
/dev/mapper/rootvg-was_lv % /websphere
/dev/sda1 % /boot
/dev/mapper/rootvg-tmp_lv % /tmp
列出各文件系统的i节点使用情况
[hadoopuser@CNSZ443239 ~]$ df -ia
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/rootvg-root_lv % /
proc - /proc
sysfs - /sys
devpts - /dev/pts
tmpfs % /dev/shm
/dev/mapper/rootvg-was_lv % /websphere
列出文件系统的类型
[hadoopuser@CNSZ443239 ~]$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-root_lv ext4 % /
tmpfs tmpfs % /dev/shm
/dev/mapper/rootvg-was_lv ext4 % /websphere
/dev/sda1 ext4 % /boot
/dev/mapper/rootvg-tmp_lv ext4 % /tmp
10.14.49.126:/UAT1_shared nfs % /home/ap/ods/shared
10.14.49.123:/UAT1_data_public_ods nfs % /data_public_ods
10.14.49.125:/UAT1_data_to_ods nfs % /data_to_ods
10.14.49.127:/UAT1_PABank_DCC nfs % /PABank_DCC
以更易读的方式显示目前磁盘空间和使用情况
[hadoopuser@CNSZ443239 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-root_lv 20G 15G .9G % /
tmpfs .9G 72K .9G % /dev/shm
/dev/mapper/rootvg-was_lv 40G 176M 38G % /websphere
/dev/sda1 485M 39M 421M % /boot
/dev/mapper/rootvg-tmp_lv .9G 752M .7G % /tmp
10.14.49.126:/UAT1_shared 100G 53G 48G % /home/ap/ods/shared
10.14.49.123:/UAT1_data_public_ods .5T .2T 352G % /data_public_ods
10.14.49.125:/UAT1_data_to_ods .0T .5T 525G % /data_to_ods
10.14.49.127:/UAT1_PABank_DCC .5T .3T 271G % /PABank_DCC [hadoopuser@CNSZ443239 ~]$ df -H --等于"-h",但是计算式,1K=,而不是1K=
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-root_lv 22G 16G .2G % /
tmpfs .2G 74k .2G % /dev/shm
/dev/mapper/rootvg-was_lv 43G 185M 40G % /websphere
/dev/sda1 508M 41M 441M % /boot
/dev/mapper/rootvg-tmp_lv 11G 789M .3G % /tmp
10.14.49.126:/UAT1_shared 108G 57G 51G % /home/ap/ods/shared
10.14.49.123:/UAT1_data_public_ods .7T .3T 377G % /data_public_ods
10.14.49.125:/UAT1_data_to_ods .2T .7T 563G % /data_to_ods
10.14.49.127:/UAT1_PABank_DCC .7T .4T 291G % /PABank_DCC
只显示本地文件系统
[hadoopuser@CNSZ443239 ~]$ df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rootvg-root_lv 20G 15G .9G % /
tmpfs .9G 72K .9G % /dev/shm
/dev/mapper/rootvg-was_lv 40G 176M 38G % /websphere
/dev/sda1 485M 39M 421M % /boot
/dev/mapper/rootvg-tmp_lv .9G 752M .7G % /tmp