Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

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?

share|improve this question

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.

up vote 4 down vote accepted

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)

share|improve this answer

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