What processes are using which ports on unix?

gnuchu picture gnuchu · Sep 24, 2008 · Viewed 134.6k times · Source

I need to find out what ports are attached to which processes on a Unix machine (HP Itanium). Unfortunately, lsof is not installed and I have no way of installing it.

Does anyone know an alternative method? A fairly lengthy Googling session hasn't turned up anything.

Answer

Quentin picture Quentin · Sep 24, 2008

netstat -l (assuming it comes with that version of UNIX)