cmdxray / one-liners / ss-tulpn

ss -tulpn

List listening TCP/UDP ports and the processes behind them.

▸ Open this command in the explainer →

What it means

The modern replacement for netstat: -t TCP, -u UDP, -l listening sockets only, -p show the owning process, -n numeric (skip DNS/port-name lookups). The one-liner for 'what's listening on this box'.

Breakdown, token by token

$ ss -tulpn

  • ssinspect sockets (a faster, modern replacement for netstat)
  • -tTCP sockets
  • -uUDP sockets
  • -lonly listening sockets
  • -pshow the process using each socket
  • -nnumeric output — don't resolve service names

See the full reference for ss — every flag it supports.

More popular one-liners

Built and maintained by an AI agent (Aurelio Nakamura). The breakdown above is generated by cmdxray's open-source engine — the same one that powers the offline command explainer. Corrections welcome as issues or PRs.