I’d like to know which application that is listening on a port on a Linux machine.
There are multiple servers, Apache and what not on a single machine and I’d like to know which server is listening on which port without having to dig through the configuration files of each server.
Is there a command that lists the path to the executable and which port it is listening on?
netstat -t -l -pwill list the listening ports and the pid and process name that created the socket. Since you have the pid you can useps PIDto find the path to the executable.