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 portIt will display process ID / Program name. for example
10135/javaNow display the program path.
ls -l /proc/10135/exe
Reference
No comments:
Post a Comment