netstat -tunlp用于显示tcp,udp的端口和进程等相关情况,如下图 netstat -tunlp|grep 端口号,用于查看指定端口号的进程情况,如查看22端口的情况,netstat -tunlp|grep 22,如下图