Skip to content

Commit

Permalink
Update scipts
Browse files Browse the repository at this point in the history
Update scipts

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
  • Loading branch information
bensuperpc committed Jul 29, 2021
1 parent 5c9da94 commit 5a21da8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion linux/cleaning/clean-system.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -euo pipefail
#// //
#// Script, 2021 //
#// Created: 24, July, 2021 //
#// Modified: 24, July, 2021 //
#// Modified: 29, July, 2021 //
#// file: - //
#// - //
#// Source: - //
Expand All @@ -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"

0 comments on commit 5a21da8

Please sign in to comment.