Skip to content

Instantly share code, notes, and snippets.

@Oats87
Last active July 31, 2020 23:26
Show Gist options
  • Save Oats87/0cfb120b0e79b4c0f15c724ffbe5bb43 to your computer and use it in GitHub Desktop.
Save Oats87/0cfb120b0e79b4c0f15c724ffbe5bb43 to your computer and use it in GitHub Desktop.
#!/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