How to find out Port and Process details in Linux

 

netstat and ps
netstat -tulpn | grep 3306

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1138/mysqld

ls -l /proc/3306/exe
find out process details
ps aux|grep 3306
Tags:

Add a Comment