df输出文件名过长会换行
[root@localhost ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_centosparent-lv_root
50G 43G 4.5G 91% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 477M 76M 377M 17% /boot
/dev/mapper/vg_centosparent-lv_home
58G 21G 35G 37% /home
df -P就可以了
[root@localhost ~]# df -P
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/mapper/vg_centosparent-lv_root 51475068 44138616 4715012 91% /
tmpfs 1957376 0 1957376 0% /dev/shm
/dev/sda1 487652 76919 385133 17% /boot
/dev/mapper/vg_centosparent-lv_home 60594244 21278508 36231040 37% /home