Skip to content

Instantly share code, notes, and snippets.

@doniz
Created October 1, 2015 19:39
Show Gist options
  • Save doniz/5a345cc3740bdb0bbda5 to your computer and use it in GitHub Desktop.
Save doniz/5a345cc3740bdb0bbda5 to your computer and use it in GitHub Desktop.
  # Get current directory size via command shell line
  find . -type f -exec ls -l {} \; | awk '{sum += $5} END {print sum}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment