ss – Socket Statistics Tool

ss (socket statistics) is the modern replacement for netstat, providing faster and more detailed information...

Networking Tools Linux Open Source

ss (socket statistics) is the modern replacement for netstat, providing faster and more detailed information about network sockets. It can display TCP, UDP, UNIX sockets, and more, with powerful filtering capabilities that make it essential for network troubleshooting and monitoring on Linux systems.

Key Features

  • Fast Performance – Much quicker than netstat on systems with many connections
  • Detailed Information – Shows TCP internal info, memory usage, and timers
  • Powerful Filtering – Filter by state, address, port with expressions
  • Modern Design – Uses netlink interface for efficiency

Basic Usage

# List all connections
ss -a

# Show listening sockets
ss -l

# Show TCP sockets
ss -t

# Show UDP sockets
ss -u

# Show process using socket
ss -p

# Combined: listening TCP with process info
ss -tlp

# Filter by port
ss -t sport = :22

View Documentation

Was this article helpful?