Linux

ss

SafeSockets and listening ports

ss -tulpn

Successor to netstat; lists listening ports and processes fast.

Examples

  • ss -tulpnTCP/UDP listeners with PID

Syntax

ss -tulpn

Before you run it

Read-only.

Used when you see

Port already in use
3
Same check on Linuxss/lsof to find the owner
See the whole flow →
Cannot connect remotely / VPN
4
Is the service listening?Check listening ports
See the whole flow →

Related commands

  • netstatConnections and listening ports
  • lsofOpen files/ports

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store