$ df -P
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Rootvg-rootlv 20G 613M 19G 4% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 240M 113M 115M 50% /boot
/dev/mapper/Rootvg-homelv 20G 2.0G 17G 11% /home
/dev/mapper/Rootvg-instlv 2.0G 2.9M 1.9G 1% /install
/dev/mapper/Rootvg-optlv 976M 53M 872M 6% /opt
/dev/mapper/Rootvg-itmlv 4.8G 10M 4.6G 1% /opt/IBM/ITM
/dev/mapper/Rootvg-tmplv 20G 2.8M 19G 1% /tmp
/dev/mapper/Rootvg-usrlv 32G 2.2G 28G 8% /usr
/dev/mapper/Rootvg-varlv 20G 198M 19G 2% /var
/dev/mapper/Rootvg-loglv 29G 73M 28G 1% /var/log
/dev/mapper/Rootvg-auditlv 27G 18M 26G 1% /var/log/audit
/dev/mapper/Appvg-applv 123G 868M 116G 1% /app
我正在尝试添加总大小(将所有显示在第 2 列中)我该怎么做?因为有mega和giga的组合
使用该
-B
选项指定您希望报告所有值的特定“块大小”。块大小用整数和单位表示。从手册页我有:例如,
df -BM
将以兆字节为单位打印所有大小。(如果在别名中设置,它将覆盖先前-h
的;例如,df -h -BM
是否相同)