Hi All,

This is not actually kernel problem, but I thought of discussing this here.

I have created a 2 GB file through a script, but i see the size of the file
through ls and du commands it is reporting different size.

for example:
[EMAIL PROTECTED]:~> file test
test: character Computer Graphics Metafile
[EMAIL PROTECTED]:~> ls -l test
-rw-r--r-- 1 adil group 2147483648 2007-09-24 23:51 test
[EMAIL PROTECTED]:~> du -b test
2147483648      test

The above output is OK.

but when I do:

[EMAIL PROTECTED]:~> ls -lh test
-rw-r--r-- 1 adil group 2.0G 2007-09-24 23:51 test
[EMAIL PROTECTED]:~> du -h test
2.1G    test   <--------------------- why it is showing 2.1 GB

I could not understand this difference. Could anybody explain this
behavioour?

The machine is SLES10 x86_64

Rgds,
Adil

Reply via email to