From 60e18fa4801e795707b84cdfc67bbf786f7e103c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 24 Jul 2018 16:33:41 -0300 Subject: Also cleanup old things in /tmp folder in gc.sh --- scripts/gc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/gc.sh b/scripts/gc.sh index dcca50a..9ca5af3 100755 --- a/scripts/gc.sh +++ b/scripts/gc.sh @@ -14,9 +14,11 @@ nix-store --gc nix-collect-garbage -d -## Cleanup up the Trash folder +## Cleanup up the Trash and /tmp folders rm -rf ~/.local/share/Trash/files/* +# https://askubuntu.com/a/609396 +sudo find /tmp -type f -atime +10 -delete ## Erasing docker images -- cgit v1.2.3