IT Toolbox
Menu
Linux · Network

List listening ports on Linux

Shows listening TCP and UDP sockets together with the associated processes.

Low riskAdministrator rights may be required

Command

sudo ss -tulpn

When to use it

Use this to confirm that a service is listening on the expected port and interface.

How it works

  • t and u select TCP and UDP.
  • l limits the output to listening sockets.
  • p shows the process and n prevents name resolution.

Precautions

  • sudo may ask for the administrator password.

Rollback

No changes are made.

Support the development of BAOI Hosting, domains and new IT resources.
❤️ Support BAOI