netstat -I=eth0 #
netstat
QUERY
TCP
ss -l
[root@localhost www]# ss -l | tail -n 10
udp
socket
[root@localhost www]# ss -pl | tail -n 10
tcp socket
[root@localhost www]# ss -t -a
UDP Socekt
[root@localhost www]# ss -u -a
SMTP
[root@localhost www]# ss -o state established '( dport = :smtp or sport = :smtp )'
HTTP
[root@localhost www]# ss -o state established '( dport = :http or sport = :http )'
X
[root@localhost www]# ss -x src /tmp/.X11-unix/*
(root@localhost www) #, ss s