ss
NetworkFundamentals In real LinuxInspect sockets and listening ports
Name: ss = socket statistics
This command needs a real Linux system; you can practise it in real Linux mode.
Description
ss shows socket information and is the modern, faster and more detailed replacement for netstat. The favourite is ss -tulnp: all TCP and UDP listening ports with their processes.
Syntax
ss [OPTION]...Common options
| -t / -u | TCP / UDP |
| -x | Unix sockets (between local processes) |
| -l | Listening sockets only |
| -a / --all | All sockets, listening ones too |
| -n | Numeric |
| -p | Show processes |
| -s / --summary | Only counts of each kind |
| -o / --options | Show timers (how long a connection will be kept, say) |
| -4 / -6 | IPv4 / IPv6 only |
| state STATE | Filter by state, e.g. ss -t state established |