Consultor Eletrônico



Kbase P26920: How to find the process ID (PID) of a UNIX process listening on a particular TCP port.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

GOAL:

How to find the process ID (PID) of a UNIX process listening on a particular TCP port.

GOAL:

How can I find the process ID (PID) of a UNIX process listening on a particular TCP port?

FACT(s) (Environment):

UNIX

FIX:

Using the UNIX 'lsof' command, the UNIX process ID (PID) can be determined for a specific TCP port.

SYNTAX:
lsof | grep <TCP port#>

EXAMPLE:
$ lsof|grep 4444
_mprosrv 41526 psc_user 32u IPv4 0x70422edc 0t0 TCP *:4444 (LISTEN)