显示符合条件的进程情况
语法:lsof -i[46] [protocol][@hostname|hostaddr][:service|port]
46 – IPV4 or IPV6
protocol – TCP or UDP
hostname – Internet host name
hostaddr – IP地址
service – /etc/service中的service name(可多选)
port – 端口号(可多选)
Example:
TCP:25 - TCP and port 25
@1.1.1.1 - IP 1.1.1.1
tcp@test.com - TCP protocol, ftp service