Intermediate Package: iproute2

ss

Investigate open sockets and listening ports.

Syntax

ss [options]

Description

ss (socket statistics) replaces the older netstat and reports TCP, UDP and Unix socket information much faster by reading directly from kernel data structures.

Examples

ss -tulpn
List all listening TCP/UDP ports with the owning process
ss -s
Show summary socket statistics
ss -t state established
List only established TCP connections

Applies to

Ubuntu Debian Linux Mint RHEL CentOS / Rocky / AlmaLinux Fedora Arch Linux openSUSE Alpine Linux