Monday, October 31, 2011

Solaris: who is listening to that port ?

From time to time, I need to figure out which process is listening to which port. In linux; which I am more familiar with; netstat -natlp is my faviorite. but in solaris that is not an option. whenever i google the issue, i get suggestions to use lsof, but for some reason (probably due to being compiled against a different version on SunOS); what helps me out (and I'm writing this post to help me remember it) is the command "pfiles"!

Otherwise, enjoy your life; but remember, Palestinians are denied freedom of movement.