脚本书写命令

网络类

端口

1.1过滤以占用的端口

ss -lantup  |awk 'NR>1{print $5}' |awk -F: '{print $NF}'|uniq

ss -lntup  |awk 'NR>1{gsub(".*:","",$5);print $5}'  |uniq

netstat -anp |grep 0 |awk '{print $4}'|grep :|awk -F':' '{print $NF}'|sort -n |uniq
# Linux   shll脚本  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×