10

Possible Duplicate:
How to know the size of a directory?

If I run

ls -lh

then any given directory is just shown as 4.0K. How can I can make it consider the files the directory refers to as well?

marked as duplicate by Steven D, Michael Mrozek Nov 4 '10 at 1:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • marking a question as a duplicate without linking to the duplicate is like having sex without an orgasm... – aequalsb Feb 9 '17 at 14:30
6

Use du -h and all directories and their subdirectories are being aggregated. (The -h makes it human readable as in useful units like MB, GB or KB)

  • -h does not show the total size of the directories including it's contents – aequalsb Feb 9 '17 at 14:31

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