ss

Table of Contents

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_seq etc.). For anything else(udp etc.) this should be UNCONN.
  • Recv-Q/Send-Q, Local Address:Port, Peer Address:Port: See netstat manpage for details
  • Process: Sometimes this will not show up without sudo

4. netstat

I am not making additional cheatsheet for netstat as it's an alternative to ss.

4.1. Usage

netstat -tunapl

Created: 2024-07-16 Tue 16:44

Validate