netstat
netstat
root@debian:~# netstat -tuapn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1751/smbd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4230/sshd tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1751/smbd udp 0 0 172.16.48.101:137 0.0.0.0:* 1749/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1749/nmbd udp 0 0 172.16.48.101:138 0.0.0.0:* 1749/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1749/nmbd udp 0 0 0.0.0.0:68 0.0.0.0:* 871/dhclient3