Amazon Web Services (AWS) tools
Clean an EC2 instance before create a new AMI
set +o history
history -c
sudo -i
set +o history
history -c
bash <(curl -s https://raw.githubusercontent.com/ebenzecri/aws-toolkit/master/cleanmyami.sh)
- Delete files or directories you specify
- Delete SSH keys from all users
- Clean cached packages
- Clean logs
- Clean bash history for all users