Consultor Eletrônico



Kbase P20443: How to check what process opens a TCP port with lsof in Unix
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Verified

GOAL:

How to check what process opens a TCP port

GOAL:

Using lsof to list processes that has opened TCP file sockets

GOAL:

How to check running processes listening on a specific TCP port using lsof

FACT(s) (Environment):

unix

FIX:

To show what process has opened a specific port number run lsof as root,
using the following syntax:

lsof -i TCP:<portnumber/service name>

This command is installed on most Unix platforms as part of the standard installation or as a add on package, binaries and source code can be found on the lsof FTP site.