Last active
July 31, 2020 23:26
-
-
Save Oats87/0cfb120b0e79b4c0f15c724ffbe5bb43 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
#!/bin/sh | |
sed -i "/\b\UUID\b/d" /etc/sysconfig/network-scripts/ifcfg-ens192 | |
rm -vf /etc/ssh/ssh_host_* | |
systemctl stop systemd-journald.socket | |
find /var/log -type f -exec rm {} \; | |
rm -rf /var/log/journal/* | |
rm /root/.bash_history; history -c | |
systemctl poweroff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment