Skip to content

Instantly share code, notes, and snippets.

@kgantsov
Created June 11, 2021 11:40
Show Gist options
  • Select an option

  • Save kgantsov/6b91b88b51e3a5b118d29892a3499557 to your computer and use it in GitHub Desktop.

Select an option

Save kgantsov/6b91b88b51e3a5b118d29892a3499557 to your computer and use it in GitHub Desktop.

Revisions

  1. kgantsov created this gist Jun 11, 2021.
    3 changes: 3 additions & 0 deletions find_env_folders.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # simple script that finds all python virtualenv folders and shows how much
    # space they are taking byt running `du -sh` command on each of the found directory
    sudo find ~ -type d \( -name env -o -name venv \) -exec du -sh {} \; 2>/dev/null