netstat -nlp

Visualizzazione dei software che mantengono porte in listening, con relativo indirizzo IP.

root@enigma:/# netstat -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:2401            0.0.0.0:*               LISTEN      640/inetd
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      773/mysqld
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN      640/inetd
tcp        0      0 192.168.0.2:80          0.0.0.0:*               LISTEN      783/httpd
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      640/inetd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      643/sshd
tcp        0      0 0.0.0.0:631             0.0.0.0:*               LISTEN      722/cupsd
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      692/master
udp        0      0 0.0.0.0:631             0.0.0.0:*                           722/cupsd
...

L'opzione -n visualizza gli indirizzi in formato numerico, -l filtra solamente le porte in stato listen mentre -p visualizza il PID ed il nome del programma che mantiene aperta una determinata porta

Privacy Policy