File: ec2Clean

package info (click to toggle)
qiime 1.8.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 130,508 kB
  • ctags: 10,145
  • sloc: python: 110,826; haskell: 379; sh: 169; makefile: 125
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