Terminal Dojo
Help العربية Sign inGet started

Command library / ss

ss

BashDraft — pending expert review3 practice missions

Show socket connections and listening ports

The modern replacement for netstat on Linux: shows sockets — connections and listening ports. -t is TCP, -u is UDP, -l narrows to listening sockets only, -n skips slow reverse-DNS lookups, and -p shows which process owns each socket. These bundle: -tuln is one of the most common invocations on any Linux box.

Practice ss

Usage

ss [-t] [-u] [-l] [-n] [-p]

Options and flags

Examples

Common mistakes

ss -tul ss -tuln

This drill's answer includes -n for fast numeric output — without it ss does a reverse-DNS lookup per socket, which is slower and shows hostnames instead of raw addresses.

Related commands

netstattest-netconnection