Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a folder with 40 GB of dozens of directories and stuff, and I want to see the exact size of the root folder in bytes ..

I have tried using this, but it shows the size in kilobytes:

du -s foldername

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Use the -B1 parameter to du:

du -s -B1 foldername
$ man 1 du
 -B, --block-size=SIZE
          use SIZE-byte blocks

You could also try the --apparent-size flag

share|improve this answer
Thanks man .. ! –  Ahmad Feb 16 '12 at 19:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.