Skip to content

Instantly share code, notes, and snippets.

@JCPurger
Last active August 23, 2023 08:46
Show Gist options
  • Select an option

  • Save JCPurger/e50fd0bbb44e56f5f7aa7b4410117922 to your computer and use it in GitHub Desktop.

Select an option

Save JCPurger/e50fd0bbb44e56f5f7aa7b4410117922 to your computer and use it in GitHub Desktop.

Revisions

  1. JCPurger renamed this gist Aug 23, 2023. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. JCPurger created this gist Nov 19, 2022.
    5 changes: 5 additions & 0 deletions Linux
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    // List
    find . -name "node_modules" -type d -prune -print | xargs du -chs

    // Delete
    find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;