From 68c9aabe5e00c3c0f33c37703db0031c7fabb850 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Fri, 22 Feb 2019 08:55:39 +0100 Subject: [PATCH] --- cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanup.sh b/cleanup.sh index 1c2ba5f..dcd23d9 100644 --- a/cleanup.sh +++ b/cleanup.sh @@ -6,6 +6,6 @@ find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -dele truncate -s0 $HOME/.bash_history [ -w $HOME/.zsh_history ] && truncate -s0 $HOME/.zsh_history find /var/log -type f -exec truncate -s0 '{}' '+' -dd if=/dev/zero of=/emptyfile oflag=sync bs=4M; +dd if=/dev/zero of=/emptyfile oflag=sync status=progress bs=4M; rm -f /emptyfile; poweroff