df -h|df -H 的具体差别 ??

echo_no_bug 2015-09-23 08:13:56
-H "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to
three or less using base 10 for sizes.

-h "Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to
three or less using base 2 for sizes.

重要的是base 2 for sizes.什么意思呢.才刚接触unix~~~

z***deMacBook-Pro:pingan z***$ df -H /
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 120G 113G 7.0G 95% 27701191 1711177 94% /
z***deMacBook-Pro:pingan z***$ df -h /
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk0s2 112Gi 105Gi 6.5Gi 95% 27701193 1711175 94% /
...全文
248 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
starym 2015-09-24
  • 打赏
  • 举报
回复
正解,一个是10进制10^3计算大小,一个是2进制2^10计算大小。
ckc 2015-09-23
  • 打赏
  • 举报
回复
一个是1024为计数单位,一个是1000计数单位

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧