Interview Prep/Linux/Networking, SSH & Scheduling

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
All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling