Created
February 23, 2018 21:39
-
-
Save jpadams/37f28b158df0b4e0d2d99b2e11b271b2 to your computer and use it in GitHub Desktop.
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
/sbin/service auditd stop | |
/bin/package-cleanup --oldkernels --count=1 | |
/usr/bin/yum clean all | |
/usr/sbin/logrotate –f /etc/logrotate.conf | |
/bin/rm –f /var/log/*-???????? /var/log/*.gz | |
/bin/rm -f /var/log/dmesg.old | |
/bin/rm -rf /var/log/anaconda | |
/bin/cat /dev/null > /var/log/audit/audit.log | |
/bin/cat /dev/null > /var/log/wtmp | |
/bin/cat /dev/null > /var/log/lastlog | |
#/bin/cat /dev/null > /var/log/grubby | |
#/bin/rm -f /etc/udev/rules.d/70* | |
#/bin/sed -i '/^(HWADDR|UUID)=/d' /etc/sysconfig/network-scripts/ifcfg-ens160 | |
/bin/rm –rf /tmp/* | |
/bin/rm –rf /var/tmp/* | |
#/bin/rm –f /etc/ssh/*key* | |
/bin/rm -f ~root/.bash_history | |
unset HISTFILE | |
#/bin/rm -rf ~root/.ssh/ | |
/bin/rm -f ~root/anaconda-ks.cfg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment