- 论坛徽章:
- 0
|
[root@cent2 sys]# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
870816 132260 694320 17% /
/dev/sda1 295561 13840 266461 5% /boot
none 127984 0 127984 0% /dev/shm
/dev/mapper/VolGroup00-LogVol02
1032088 34120 945540 4% /home
/dev/mapper/VolGroup00-LogVol04
999832 40236 908808 5% /opt
/dev/mapper/VolGroup00-LogVol01
2999568 1005236 1841964 36% /usr
/dev/mapper/VolGroup00-LogVol03
999832 17760 931284 2% /usr/local
有的时候结果会分两行显示,就是设备名和其它数据分两行。不分行时usage%为$5,分行时是$4,不知道该怎样处理,请高手给指点,或者能否用df的参数改变这个输出结果,os:cent os |
|