Tuesday 31 July 2018

Finding the process that is using a certain port in Linux


I'd like to be able to find out which process is currently using a certain port in Linux. Is there any way to do this?



Answer



You have a couple of options:


lsof -i tcp:80

will give you the list of processes using tcp port 80.


Alternatively,


sudo netstat -nlp

will give you all open network connections.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...