This commit is contained in:
bzoicas
2023-07-10 10:41:17 +03:00
commit dbb46eb92a
360 changed files with 13521 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
#### Clear log files
find /var/log -type f -name "*log" -exec truncate -s 0 {} \;
truncate -s 0 /var/log/*tmp
#### Clear user files
find /home -type f -name .bash_history -exec rm {} \;
if [ -f /root/.bash_history ]; then
rm /root/.bash_history
fi
find /home -type f -name .viminfo -exec rm {} \;
if [ -f /root/.viminfo ]; then
rm /root/.viminfo
fi