I think my du command is confused.
% du -shc DIR ...
...
6123941496 total
% du -shc DIR ...
...
6.1G total
% du -sc --si DIR ...
...
6.6G total
I've tried giving LANG=C
and double-checking the result in a spreadsheet. It looks like -h already outputs using powers of 1000 (--si), and --si gives wrong answer. I think the correct answer should be 5.7G for -h and 6.1G for --si. So what happens here?
% du --version
du (GNU coreutils) 8.20
...
% uname -a
Linux XXX 3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 GNU/Linux
...
represent? You seem to have run the exact same command twice and have gotten different output, is that so? Have you read the explanation of the size modifiers inman du
? – terdon Oct 10 '13 at 04:06