diff --git a/linux/cleaning/clean-system.sh b/linux/cleaning/clean-system.sh index 9248192..73d2a9d 100755 --- a/linux/cleaning/clean-system.sh +++ b/linux/cleaning/clean-system.sh @@ -11,7 +11,7 @@ set -euo pipefail #// // #// Script, 2021 // #// Created: 24, July, 2021 // -#// Modified: 24, July, 2021 // +#// Modified: 29, July, 2021 // #// file: - // #// - // #// Source: - // @@ -34,13 +34,20 @@ fi #journalctl --disk-usage sudo journalctl --vacuum-time=3d +echo "Clear journalctl: OK" #du -h /var/lib/snapd/snaps sudo find ~/.cache/ -type f -atime +3 -delete +echo "Clear cache: OK" sudo find ~/Téléchargements/ -type f -atime +15 -delete || true sudo find ~/Downloads/ -type f -atime +15 -delete || true +echo "Clear Downloads: OK" sudo rm -rf ~/.local/share/Trash/* +echo "Clear Trash: OK" + +sudo docker image prune -f || true +echo "Clear docker: OK" echo "Clean: OK"