What does `ss` show, and which flags do you use?
BeginnerConceptNetworking, SSH & Scheduling
Answer
ss dumps socket statistics from the kernel (replacing netstat).
ss -tlnp # TCP listening sockets, numeric, with process
ss -tunap # all TCP/UDP with processes
ss -s # summary counts per state
ss -tn state established '( dport = :5432 )'
ss -tnp | grep -c TIME-WAIT
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat 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