What does ss do?

inspect sockets (a faster, modern replacement for netstat).

▸ Explain your own ss command →

ss examples, explained

$ 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

$ ss -s

  • ssinspect sockets (a faster, modern replacement for netstat)
  • -sprint summary statistics

ss flags & options

-tTCP sockets
-uUDP sockets
-lonly listening sockets
-pshow the process using each socket
-nnumeric output — don't resolve service names
-aall sockets (listening and non-listening)
-sprint summary statistics

Other commands

Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.