13

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?

oadams
  • 2,335
  • marking a question as a duplicate without linking to the duplicate is like having sex without an orgasm... – aequalsb Feb 09 '17 at 14:30

1 Answers1

9

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)

tante
  • 6,350
  • 1
  • 28
  • 23