ss
, netstat,
Syntax
ss [options] [filter]
Parameters
| Parameters | Description | Examples | Level |
|---|---|---|---|
-t |
TCP | |
Common |
-u |
UDP | |
Common |
-l |
|
Common | |
-n |
() | |
Common |
-p |
|
Common | |
-a |
( and ) | |
Common |
Examples
TCP
ss -tlnp
TCP
ss -tnp | grep ESTAB
80
ss -tlnp | grep :80
ss -s
443
ss -tn state established '( dport = :443 )'
Tips
- ss -tlnp Common : TCP + + +
- ss netstat, Recommended
- watch : watch -n 1 'ss -s'
- : ss -tlnp | grep :