~/ learn/ comp-325/ cards/ Resource arithmetic, and the tool that shows it
1 of 14

Summarise the host's sockets, then list only the listeners

Summarise the host's sockets, then list only the listeners

Answer

ss -s ss -l

`-s` prints counts by transport and state and no per-socket lines at all. `-l` restricts the listing to listening sockets — the passive ones. A bare `ss` shows the opposite: non-listening sockets only.

ss(8), iproute2

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/e76bd209-307b-40da-a2dd-90a12df33763/flashcard utf-8 LF