Centos Oneliners

From Brian Nelson Ramblings
Revision as of 14:59, 10 December 2013 by Brian (Talk | contribs) (Apache Oneliners)

Jump to: navigation, search

Centos Oneliners

This will be a place to save my oneliners

Centos Oneliners

kill all pts

for x in $(ps aux | grep pts| awk '{print $2}'); do kill $x; done

Apache Oneliners

Check the Number of IP's Connecting over Port 80

netstat -tn | grep :80 | awk '{print $5}'| cut -d: -f1 | uniq -c | sort -n | head

Mysql Oneliners

Qmail Oneliners