Port to Process Mapping
When you want to know who's listening on a specific port, just use this:
lsof -i -P | grep -i "listen"
This will give you the name and PID of the processes as well as the ports they are bound to.
Written by Horia Dragomir
Related protips
1 Response
If you want to know who's listening on a specific port, that's an extremely inefficient approach. Better would be
lsof -i tcp:80
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Cli
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#