Home / Networking Commands / ss (Linux)

ss

Socket Statistics - Modern Linux Network Tool

What Does It Do?

The ss command is a modern replacement for netstat used to display socket statistics. It's faster and provides more detailed information about network connections, listening ports, and socket states.

The ss command is preferred over netstat in modern Linux systems due to its superior performance and ability to display more TCP and state information.

Advertisement

[ Insert Google AdSense Banner Code Here ]

When Should I Use It?

View Active Sockets

Display all active network sockets and connections.

Check Listening Ports

Quickly identify which ports are listening for connections.

Faster Than Netstat

Modern replacement with improved performance and features.

Detailed Statistics

View TCP states, timers, and detailed socket information.

Common Commands

ss -tuln

Show all TCP/UDP listening ports with numeric addresses.

ss -a

Display all sockets (listening and non-listening).

ss -t

Show only TCP connections.

ss -u

Show only UDP connections.

ss -p

Show process using the socket.

ss --help

Display help information.

Try It Yourself

Practice using the ss command in the terminal below. Try typing ss -tuln or ss -a