一些常用的alias命令

aliascdtomroot='cd/usr/java/tomcat6.0.20/webapps/ROOT/'

aliascdtom='cd/usr/java/tomcat6.0.20/'

aliascdtom2='cd/usr/java/tomcat6'

aliascdapache='cd/usr/local/apache/'

aliascdweb='cd/usr/local/web/'

aliascdmysql='cd/var/lib/mysql/'

aliass80='netstat-ant|grep80'

aliass8080='netstat-ant|grep8080'

aliass8009='netstat-ant|grep8009'

aliass3306='netstat-ant|grep3306'

aliass28080='netstat-ant|grep28080'

aliass28009='netstat-ant|grep28009'

aliasc80='netstat-ant|grep80|wc-l'

aliasc8080='netstat-ant|grep8080|wc-l'

aliasc8009='netstat-ant|grep8009|wc-l'

aliasc3306='netstat-ant|grep3306|wc-l'

aliasc28080='netstat-ant|grep28080|wc-l'

aliasc28009='netstat-ant|grep28009|wc-l'

aliasslog='/etc/log.d/logwatch--print'

aliasshttpd='ps-ef|grephttpd'

aliaschttpd='ps-ef|grephttpd|wc-l'

aliassbad='netstat-atun|grepSYN_RECV|grep:80'

aliascbad='netstat-atun|grepSYN_RECV|grep:80|wc-l'

aliascddos='netstat-ntu|awk"{print}"|cut-d:-f1|sort|uniq-c|sort-n'

netstat-n|awk'/^tcp/{++S[$NF]}END{for(ainS)printa,S[a]}'

以上是一个据说新浪某人写的shell

相关推荐