ss
Table of ContentsClose
1. Quick usage
ss -platune
2. Common options
-l: Listen flag is not about "watching" but more on whether the socket is a server(listening) or no.
3. Output explanation
Netid: nl, praw, ustr(Unix stream), useq(Unix sequence), udgr(Unix Datagram), icmp6, udp, tcp etc.State: Only useful for TCP(tcp,u_str,u_seqetc.). For anything else(udp etc.) this should beUNCONN.Recv-Q/Send-Q, Local Address:Port, Peer Address:Port: Seenetstatmanpage for detailsProcess: Sometimes this will not show up withoutsudo
4. netstat
I am not making additional cheatsheet for netstat as it's an alternative to ss.
4.1. Usage
netstat -tunapl