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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store