arnaucube
arnaucube/configsPublic Self-hosted repository
add rm-targets script
arnaucube root@arnaucube.com
Mon, 22 Jan 2024 22:49:44 +0100
commit

292bf2b2db5972fa891e7d832fe9ddcd7870a5b5

parent

7e951043b5b8fba8f6838cc7bc9c35d87b29740f

1 files changed, 16 insertions(+), 0 deletions(-)

jump to
A bin/rm-targets

@@ -0,0 +1,16 @@

+#!/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