df -h showing wrong output in GB
- by Anurag Uniyal
If I list df output for KB, MB and GB, they do not match e.g.
$ df -k |grep xvdb
/dev/xvdb1 12796048 732812 11413172 7% /xxx
$ df -m |grep xvdb
/dev/xvdb1 12497 716 11146 7% /xxx
$ df -h |grep xvdb
/dev/xvdb1 13G 716M 11G 7% /xxx
12796048 KB = 12496.14 MB so that is slight off but OK …