Skip to content

Instantly share code, notes, and snippets.

@avidmaulanas
Created May 16, 2016 07:56
Show Gist options
  • Save avidmaulanas/e91d1f8490112bf7f87f877b79915362 to your computer and use it in GitHub Desktop.
Save avidmaulanas/e91d1f8490112bf7f87f877b79915362 to your computer and use it in GitHub Desktop.
Commad Linux for check directory size
du -sh is a good place to start. The options are (from man du):
-s, --summarize
display only a total for each argument
-h, --human-readable
print sizes in human readable format (e.g., 1K 234M 2G)
To check more than one directory and see the total, use du -sch:
-c, --total
produce a grand total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment