Skip to content

Instantly share code, notes, and snippets.

@mikhailbot
Last active December 28, 2017 16:39
Show Gist options
  • Save mikhailbot/ad43e462785c5075cb57d19a3a5617d4 to your computer and use it in GitHub Desktop.
Save mikhailbot/ad43e462785c5075cb57d19a3a5617d4 to your computer and use it in GitHub Desktop.
List folder sizes within a directory
# For MacOS and Linux
find . -maxdepth 1 -mindepth 1 -type d -exec du -hs {} \;
# For Linux
du -h --max-depth=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment