How to get a size of a directory in Linux

To get a directory size, run this command from the directory:

du -shm

What do the parameters above mean?

  • -s — summarize the sizes of all available files in a folder
  • -h — show resulted value in Human readable format
  • -m — show the result in Megabytes
  • Home   Our knowledge base   Sitemap   Contact           Terms of Service   Privacy Policy   Usage Policy           © 2002-2013, All rights reserved, Atlantic Silicon Inc.