How to find and trace open ports in unix

Listing all the preocess ids: # /usr/bin/ps -ef | sed 1d | awk ‘{print $2}’ Mapping the files to ports using the PID: # /usr/proc/bin/pfiles 2>/dev/null | /usr/xpg4/bin/grep or # /usr/bin/ps -o pid -o args -p | sed 1d Mapping the sockname to port using the port number: # for i in `ps -e|awk ‘{print …

How to find and trace open ports in unix Read More »