The
Darkpoint Technology Logo

Knowledge Base

Index

Home

 

How to find which process has a file open or is listening on a TCP port

Run:

lsof|grep port_number
or
lsof|grep filename

This will show something like:

ns-admin 327 root 11u inet 0x60d68cc8 0t0 TCP *:8082 (LISTEN)

where the first field is the process name & the second field is the process ID.

Formally Darkpoint Technology Ltd.   --  Company Number: 4019337