Wednesday, May 23, 2012

Find Process by Listening Port

netstat -tulnp | grep 8080
Swtich
 -t : lists TCP connections
 -u : lists UDP connections
 -l : lists Listening ports.
 -n : lists connections that don't resolve names
 -p : displays program name that listens to the port
It will display process ID / Program name. for example
10135/java
Now display the program path.
ls -l /proc/10135/exe
Reference

No comments:

Post a Comment