Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

ss

Show socket statistics

Syntax

ss [OPTION]... [FILTER]

Common Options

-tShow TCP sockets
-uShow UDP sockets
-lShow listening sockets
-nNo name resolution
-pShow process info
-aShow all sockets
-sShow summary
-eShow extended info

Common Examples

ss -tlnp

Show TCP listening ports

ss -s

Show socket summary

ss -t -a

Show all TCP connections

ss -u -a

Show all UDP connections

ss -tp

TCP with process info

ss -t state established

Show established TCP connections

ss -t sport = :80

Show connections on port 80

Related Commands

Related Tools

More Code & Dev Tools