how to investigate ports opened by a certain process in linux?


Question

Suppose the PID of the process is already known

1
47
12/5/2009 5:26:02 PM

netstat --all --program | grep '3265'
  • --all show listening and non-listening sockets.
  • --program show the PID and name of the program to which socket belongs.

You could also use a port scanner such as Nmap.

74
6/20/2018 9:11:43 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon