From: Miroslav Kubik [mailto:[EMAIL PROTECTED] > Is there a way how to show PID which belongs to the socket by netstat > command? I searched man pages but I haven't found any useful > switch for my > need. I searched in Linux man pages for netstat as well and > it seems that > Linux can do it by "p" switch.
You can also use lsof from ports. > sudo lsof -i:514 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME syslogd 30119 _syslogd 3u IPv4 0xd69d8000 0t0 UDP *:syslog DS