System Management

A web server is slow during peak load. An administrator suspects the system is holding a very large number of sockets in the TIME-WAIT state. She wants only a compact summary of total socket counts by type and TCP state, not a line for every connection. Which command provides this?

Show the answer

Correct answerA. ss -s

ss -s prints summary statistics, including totals for each socket type and TCP state counts such as timewait. ss -tan lists every TCP socket with numeric addresses, which is the long per-connection output she wants to avoid.