So it seems nautilus/Files and other software are using the SI units to display file size for some time now, in ubuntu.
But this is rather inconsistent with cli command like ls, du,and df that still use IEC binary units.
One could normally use environment variable BLOCK_SIZE to change the behavior of the cli command, but this is not working (EDIT: here on 17.10) (https://www.gnu.org/software/coreutils/manual/html_node/Block-size.html#Block-size)
BLOCK_SIZE=si ls -l -h
still displays it in IEC binary units
export BLOCK_SIZE=si
ls -l -h
behave the same or using BLOCKSIZE either
Is this a bug ? Has it been patched/removed by ubuntu ?
Edit:
I want to use the env var to define it globally in my .bashrc
It works like this:
From
man ls
and
I think the commands work like they should, as illustrated by the following examples (running in 16.04 LTS)