From cd1f052991bcb03c653e870302daf863cac7fce4 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Tue, 19 Feb 2019 06:19:09 +0100 Subject: [PATCH] --- cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanup.sh b/cleanup.sh index b5702ee..bb60735 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -4,7 +4,7 @@ find /var/lib/apt -type f -delete find /var/cache/apt -type f -delete find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -delete truncate -s0 $HOME/.bash_history -[ -w $HOME/.zsh_history ] && truncate -s0 HOME/.zsh_history +[ -w $HOME/.zsh_history ] && truncate -s0 $HOME/.zsh_history find /var/log -type f -exec truncate -s0 '{}' '+' dd if=/dev/zero of=/emptyfile bs=4M; rm -f /emptyfile;