Socket statistics: Difference between revisions

From DWIKI
Tony (talk | contribs)
Tag: wikieditor
Tony (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
==List all connections to a port==
==List all connections to a port==
  ss -nat '( dport = :1234 )'
  ss -nat '( dport = :1234 )'
==Show processes listening on ports==
ss -pl
==List all listening ports and their processes==
ss -tlnp
[[Category:Network]]

Latest revision as of 08:40, 2 June 2026

Known as ss

Documentation

HOWTO

List all listening tcp ports

ss -natl


List all connections to a port

ss -nat '( dport = :1234 )'


Show processes listening on ports

ss -pl

List all listening ports and their processes

ss -tlnp