Use netstat -natpe
.
Da página do manual:
-e, --extend
Display additional information. Use this option twice for maximum detail.
Tão claro quanto lama.
Que adicionará duas colunas, User e Inode ao display.
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 100 13119 1901/mysqld