Wednesday, September 10, 2014

Find the process running on a particular port in UNIX



Lists all the ports and their process ids.

> netstat -tulpn

You can see the PID , only if the process is owned by the user that you have logged in.

To find the process id of a particular port.

> netstat -tulpn | grep 8089

udp        0      0 ::ffff:10.32.200.000:8089   :::*                                    11268/java


to find the process of this particular process id:

> ps -ef | grep 11268


No comments:

Post a Comment