← BYTES
Unix IPC·Starter·Ref: 15.1.23

What tool is commonly used on Linux to see what TCP connection state (e.g. ESTABLISHED, TIME_WAIT, CLOSE_WAIT) a socket is currently in?

Have a question about this video? Mention reference 15.1.23 when you contact us.

a.top
b.grep
c.ss (or the older netstat) -- e.g. `ss -tan` lists sockets along with their current TCP state
d.df
`ss -tan` (or `netstat -tan` on older systems) lists every TCP socket along with its current state column -- LISTEN, ESTABLISHED, TIME_WAIT, CLOSE_WAIT, etc. -- making it the standard first tool to reach for when diagnosing connection-state questions.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES15123#UnixIPC