Explain the TCP connection states you see in ss.
AdvancedConceptNetworking, SSH & Scheduling
Answer
LISTEN: waiting for connections.SYN-SENT/SYN-RECV: handshake in progress.ESTAB: open connection.FIN-WAIT-1/2,CLOSING,TIME-WAIT: active closer side; TIME-WAIT lasts 60 s on Linux.CLOSE-WAIT: the peer closed, but our app has not called close(). Growing CLOSE-WAIT is an application bug (leaked connections).LAST-ACK: passive closer waiting for final ACK.
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?BeginnerWhat are /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf?Intermediate