Created
February 19, 2019 07:50
-
-
Save phstudy/6aa078a5ef662ce026695d2f6b0194fc to your computer and use it in GitHub Desktop.
Cleanup ovirt vm script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -s | |
yum clean all | |
> /etc/machine-id | |
rm -f /etc/ssh/ssh_host_* | |
rm -rf /root/.ssh/ | |
rm -f /root/anaconda-ks.cfg | |
rm -f /root/.bash_history | |
rm -f /home/tenmax_admin/.bash_history | |
rm -rf /home/tenmax_admin/.ssh/ | |
unset HISTFILE | |
rm -f /var/log/boot.log | |
rm -f /var/log/cron | |
rm -f /var/log/dmesg | |
rm -f /var/log/grubby | |
rm -f /var/log/lastlog | |
rm -f /var/log/maillog | |
rm -f /var/log/messages | |
rm -f /var/log/secure | |
rm -f /var/log/spooler | |
rm -f /var/log/tallylog | |
rm -f /var/log/wpa_supplicant.log | |
rm -f /var/log/wtmp | |
rm -f /var/log/yum.log | |
rm -f /var/log/audit/audit.log | |
rm -f /var/log/ovirt-guest-agent/ovirt-guest-agent.log | |
rm -f /var/log/tuned/tuned.log | |
cloud-init clean | |
sys-unconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment