Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

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.

1 Answer

up vote 2 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
add comment

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