Created
September 21, 2017 14:05
-
-
Save WaterSibilantFalling/23ba11891d7406a3f6c9e4e80bb24c82 to your computer and use it in GitHub Desktop.
a simple cleain-up script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VIM_BU_DIR="/work/BACKUP/vimBackups" | |
# thumbnails | |
rm -f -d /home/me/.thumbnails/*/*/* ; | |
rm -f -d /home/me/.thumbnails/*/* ; | |
rm -f -d /home/me/.thumbnails/* ; | |
rmdir /home/me/.thumbnails/*/* 2>/dev/null ; | |
rmdir /home/me/.thumbnails/* 2>/dev/null ; | |
rm -f -d .maprogs/mapivi/trash/* | |
# apps' temp dirs | |
rm -f -r /home/me/.vifm/Trash/* | |
rm -f /home/me/ptkdb_restart* | |
# vim backups older than a month old | |
find $VIM_BU_DIR -not -newerat "1 month ago" -delete ; | |
# wrapper script for bleachbit runs | |
bbit firefox | |
# print temp files | |
# don't clean /var/spool/cups/tmp/*, for unlikely in-process jobs | |
# could test with prinls... | |
rm -f /var/spool/cups/* 2>/dev/null ; | |
# old files from /temp | |
# check this WELL first | |
#find /temp -type f -not -newerat "1 year ago" -exec rm {} \; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment