Linux: Find Out Which Process Is Listening Upon a Port | Linux Today

Linux: Find Out Which Process Is Listening Upon a Port

Written By
Web Webster
Web Webster
Nov 1, 2010

[ Thanks to An Anonymous Reader for
this link. ]

“How do I find out running processes were associated
with each open port? How do I find out what process has open tcp
port 111 or udp port 7000 under Linux?

“You can the following programs to find out about port numbers
and its associated process:

1. netstat – a command-line tool that displays network
connections, routing tables, and a number of network interface
statistics.
2. fuser – a command line tool to identify processes using files or
sockets.
3. lsof – a command line tool to list open files under Linux / UNIX
to report a list of all open files and the processes that opened
them.
4. /proc/$pid/ file system – Under Linux /proc includes a directory
for each running process (including kernel processes) at /proc/PID,
containing information about that process, notably including the
processes name that opened port.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.