You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
357 B

  1. #!/bin/bash
  2. #
  3. # Script to remove all 'target' subdirectories. Used to get back disk space
  4. # from unused rust repos.
  5. echo "current dir size:"
  6. du -hs
  7. echo ""
  8. echo "removing subdirs:"
  9. find . -type d -name "target" # find & print
  10. find . -type d -name "target" -exec rm -rf {} + # find & rm
  11. echo ""
  12. echo "dir size after removing all 'target' subdirs:"
  13. du -hs