Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 8 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

 
discard

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.