X

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
  • Categories: Articles
    wpwpadmin:
    Related Post