How do I find out which service is listening on a specific port?

Updated -

A list of the services and their standard ports can be found in the file /etc/services. There is also a full list of the port numbers in this site as assigned by the Internet Assigned Numbers Authority: http://www.iana.org/assignments/port-numbers

Commands that can be run on the localhost:

# lsof -Pnl...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In