Inspect Sockets With ss
Show listening TCP/UDP ports and connection states without netstat.
01Command
$ ss -tuln02What it does
ss reads kernel socket tables directly and is much faster than the deprecated netstat, especially with many connections. Combined with -p it names the owning process, which is essential for remote server troubleshooting.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ss.8.en.html manual page (Debian bookworm)Evidence: Documents ss and its TCP/UDP/listening/numeric options.
Last verified: 2026-10-13 · Category: Network
06Related solutions
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Show every TCP and UDP socket in listening state with the owning process name and PID — the modern replacement for netstat.
Send a HEAD request to any URL and print the status line, server, content type, caching, and redirect headers.