vim /root/bin/links.sh
!/bin/bash
echo "连接数和IPv4地址为:netstat -nt|tr -s " "| cut -d " " -f 5|sed -n '/^[[:digit:]]'/p |tr ":" "."|cut -d . -f 1-4|sort|uniq -c |sort -nr
"
vim /root/bin/links.sh
echo "连接数和IPv4地址为:netstat -nt|tr -s " "| cut -d " " -f 5|sed -n '/^[[:digit:]]'/p |tr ":" "."|cut -d . -f 1-4|sort|uniq -c |sort -nr
"