~/ 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/9f005c72-f074-4ef3-b429-10605cbe758c/flashcard utf-8 LF