first commit

This commit is contained in:
bzoicas
2026-03-13 11:09:33 +02:00
commit 255fd3c079
170 changed files with 8640 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