How to tell process owning open socket without lsof

0

Normally with lsof
lsof -i tcp:

I found this alternative for if lsof is not available on a server to determine the process associated with an open socket Loop through all the running processes with this command till you find it.

pfile | grep "port:"
Sorry but I think it is only available on Solaris 10.

Filed under Tips by on #

Leave a Comment