Skip to content

Instantly share code, notes, and snippets.

@hibernado
Created July 17, 2014 13:41
Show Gist options
  • Save hibernado/c245b2a29acc6081cb77 to your computer and use it in GitHub Desktop.
Save hibernado/c245b2a29acc6081cb77 to your computer and use it in GitHub Desktop.
Space Taken up by files in a Directory
find DIR -type f |
xargs stat --format=%s |
awk '{s+=$1} END {print s}'
OR
du -sbh DIR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment