Show what PID is listening on a port (Linux)
Have you ever tried to start a server up and it can't grab the socket because "the port is in use"? this little command is the simplest way I know to quickly get the Process ID of the port hog
fuser -v 8080/tcp
Written by Hatem Nassrat
Related protips
2 Responses

How about lsof -i | grep 8080
over 1 year ago
·

@barnettjw Works too, I used to use lsof
, but found fuser
to be much faster.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#