I have a folder and it is 16.91GB
in size(I checked in Finder).
I tried to check the size by using du
command.
So, I tried du -sh ~/folder
and I got 16G
.
I thought I will get the output in Bytes and convert it. But I don't understand the metric when -h
is not given.
du -s ~/folder
Gives 33041320
. I thought it is in bytes but I'm wrong. In which format it is in?
How can I get 16.91GB
instead of 16G
?
Note: I believe the behaviour is same in linux also, so I tagged linux
. If it's wrong, let me know or remove the tag please.
Thank you.