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

#!/bin/bash
#
# Script to remove all 'target' subdirectories. Used to get back disk space
# from unused rust repos.
echo "current dir size:"
du -hs
echo ""
echo "removing subdirs:"
find . -type d -name "target" # find & print
find . -type d -name "target" -exec rm -rf {} + # find & rm
echo ""
echo "dir size after removing all 'target' subdirs:"
du -hs