uknowngithubuser
10/12/2019 - 12:26 AM

Script to cleanup debian (Pi) #Bash #Script #Cleanup

Script to cleanup debian (Pi) #Bash #Script #Cleanup

sudo apt-get clean > /dev/null
sudo du -sh /var/cache/apt/archives > /dev/null
sudo apt-get autoremove --purge > /dev/null
sudo apt-get autoremove > /dev/null
sudo du -sh /var/cache/apt > /dev/null
sudo apt-get autoclean > /dev/null
sudo du -sh ~/.cache/thumbnails > /dev/null
sudo rm -rf ~/.cache/thumbnails/* > /dev/null
sudo apt-get autoclean > /dev/null
echo "cleanup-debian-daily ->" $(date) | sudo tee -a outputs/output.txt > /dev/null