scripts
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
scripts [2013/03/11 13:41] – created cedric | scripts [2013/03/11 14:32] (current) – cedric | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Server administration ====== | ||
+ | |||
<code bash> | <code bash> | ||
#! /bin/sh | #! /bin/sh | ||
- | for ip in echo `grep -i unban / | + | for ip in echo `grep Ban / |
do | do | ||
for email in `whois $ip | perl -wne' | for email in `whois $ip | perl -wne' | ||
Line 19: | Line 21: | ||
done | done | ||
done | done | ||
+ | </ | ||
+ | |||
+ | ====== apt and dpkg ====== | ||
+ | |||
+ | <code bash> | ||
+ | dpkg -l |awk '/^rc/ {print $2}' | xargs sudo dpkg --purge | ||
</ | </ |
scripts.1363005684.txt.gz · Last modified: 2013/03/11 13:41 by cedric