ss / netstat Commands
Inspect sockets and listening ports.All ss / netstat pages
- ss -ti: show TCP round-trip time, congestion window and retransmissionsss -ti shows each TCP connection's RTT, congestion window, MSS, retransmissions and pacing rate on Linux. What each field means and how to read a slow link.
- ss -tulpn: list listening ports and the process using themss -tulpn lists listening TCP and UDP ports with the owning process on Linux. What each flag means, filters for one port, and macOS and Windows equivalents.
- ss filter by port or IP: ss -tn 'dport = :443' and dst 10.0.0.5Filter ss output by port or address: sport, dport, src and dst predicates, state filters, comparison operators, quoting rules and the parse errors they avoid.
- ss: count TCP connections by state, port or remote IPCount TCP connections with ss: totals with ss -s, by state with awk and uniq, per local port and per remote IP, and one state such as established or time-wait.