File: ec2Clean

package info (click to toggle)
qiime 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 29,704 kB
  • sloc: python: 77,837; haskell: 379; sh: 113; makefile: 103
file content (12 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash
wipe() { for i in "$*"; do echo "if [ -e $i ]; then rm $i; echo $i removed; else echo $i not found; fi"| sudo bash; done; }
wipe /root/.ssh/*
wipe ~/.ssh/*
wipe /etc/ssh/ssh_host_dsa_key
wipe /etc/ssh/ssh_host_dsa_key.pub
wipe /etc/ssh/ssh_host_key
wipe /etc/ssh/ssh_host_key.pub
wipe /etc/ssh/ssh_host_rsa_key
wipe /etc/ssh/ssh_host_rsa_key.pub
wipe ~/.bash_history
wipe /root/.bash_history