Tagged Questions
4
votes
3answers
282 views
How can I know the process name which is opening a tcp port?
I have two linux servers. Let's say they are C and S.
C is client of S
On my S machine, I type.
$ netstat -an | grep ESTABLISHED
tcp 0 0 192.168.1.220:3306 C:57010 ...
6
votes
3answers
588 views
Faster alternatives to lsof
I want to extract the process id of a certain process in order to shut it down. The process is a local web server using a certain port (localhost:3000), and I am currently doing it like this to ...
8
votes
5answers
8k views
Determining what process is bound to a port
I know that using the command:
lsof -i TCP
(or some variant of parameters with lsof) I can determine which process is bound to a particular port. This is useful say if I'm trying to start ...