Inspect Sockets With ss

Show listening TCP/UDP ports and connection states without netstat.

LinuxnetworksocketsDiagnosticsLow risk
Run ss -tuln to list listening TCP and UDP sockets numerically.

01Command

Command
$ ss -tuln

02What 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

RiskLow risk
Requirementssudo apt install iproute2
!Warning: The -p option reveals process information and usually needs root; use it only where appropriate.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

Last verified: 2026-10-13 · Category: Network

06Related solutions