Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Last active January 12, 2017 09:21
Show Gist options
  • Save JohnPreston/6d7a38b578371ba4f76b707c3fa430dc to your computer and use it in GitHub Desktop.
Save JohnPreston/6d7a38b578371ba4f76b707c3fa430dc to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
cd /var/log ; for i in `ls -l | grep drw | awk '{print $NF}'`; do cd $i; for j in `ls | more` ; do cat /dev/null > $j ; done ; cd - ; done
rm -rfv /etc/udev/rules.d/*
rm -rfv /etc/ssh/ssh_host_*
cd $HOME
rm -rfv .bash_history
rm -rf .ssh/authorized_keys
history -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment