Skip to content

Instantly share code, notes, and snippets.

@rubenerd
Created December 20, 2014 10:47
Show Gist options
  • Save rubenerd/ca4aab8958cded923d17 to your computer and use it in GitHub Desktop.
Save rubenerd/ca4aab8958cded923d17 to your computer and use it in GitHub Desktop.
Clear FreeBSD instance
#!/bin/tcsh
echo > $MAIL
rm -rf /var/log/*
rm -rf /etc/ssh/ssh*key*
rm -rf /root/.ssh/*
history -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment