Created
May 25, 2018 14:22
-
-
Save NeilHanlon/98cf1148a726fb93fd725f1c89d19880 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:oc:du::du -sk * | sort -rn | awk '{{}out=$2; for(i=3;i<=NF;i{+}{+}){{}out=out" "$i{}}; print out{}}' | xargs -ia du -hs "a" | |
:oc:tcpcount::netstat -plan|grep :80|awk {{}'print $5'{}}|cut -d: -f 1|sort|uniq -c|sort -nk 1 | |
:oc:udptcp::netstat -anp |grep 'tcp\|udp' | awk '{{}print $5{}}' | cut -d: -f1 | sort | uniq -c | sort -n | |
:oc:estab::netstat -ntu | grep ESTAB | awk '{{}print $5{}}' | cut -d: -f1 | sort | uniq -c | sort -nr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment