Skip to content

Instantly share code, notes, and snippets.

@jamesholcomb
Created January 18, 2018 15:52
Show Gist options
  • Save jamesholcomb/7df4e533e3c414913815077de7cc23bd to your computer and use it in GitHub Desktop.
Save jamesholcomb/7df4e533e3c414913815077de7cc23bd to your computer and use it in GitHub Desktop.
Recursively finds the disk space used by folders named 'node_modules'
find . -name 'node_modules' -type d -prune -exec du -sh {} +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment