To view the number of connections
Netstat-nat|grep-i "|wc-l"
Half Open connection number
Netstat-an | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, s[a]} '
Query Source IP Sort
Netstat-antp|grep Tcp|awk ' {print $ $} ' |grep-v ':: ' |cut-d:-f1|sort | uniq-c| Sort-nr|less
Netstat-antp|grep ' 8080 ' |awk ' {print $ ' |grep-v ':: ' |cut-d:-f1|sort | uniq-c| Sort-nr|less
SCP command
scp-p2222 a.tar.gz [Email protected]:/home/zwf/
scp-p2222 [email protected]:/home/zwf/xf.txt.
You can use the command to check the 5 processes with the most memory
PS aux | Sort-k4nr | Head-n 5
Or
Top (then press m, note uppercase)
You can use the command to check the 5 processes with the most CPU
PS aux | Sort-k3nr | Head-n 5
Or
Top (then press p, note capitalization)
Inquire
Netstat-nultp
This article is from the "XFICC" blog, make sure to keep this source http://xficc.blog.51cto.com/1189288/1600528
Linux Common Commands