常用命令集合

查看开放的端口

netstat -nupl (UDP类型的端口)
netstat -ntpl (TCP类型的端口)

a 表示所有

n表示不查询dns

t表示tcp协议

u表示udp协议

p表示查询占用的程序

l表示查询正在监听的程序

原文地址:https://www.cnblogs.com/mutong1228/p/10076282.html