I am looking for the cleanest way on linux to find the port status for a port being used by a specified program name via the command line. I have seen that netstat -p lists all pids but haven't seen anything corresponding to specific process names. Any help would be appreciated.
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
Theoretically you should see the program name with the paramter -p and the PID. Be aware that you need root rights to display the program name of processes which arent running under your user. -p without root permissions:
-p with root permissions
|
|||
|
|