mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00

These 6 files had multiple examples all separated by a single newline. While rendering it in markdown, the examples all come up in a single line. Adding another newline makes rendering better. Also will help in easier copying (double click on the line to copy).
31 lines
514 B
Markdown
31 lines
514 B
Markdown
# ss
|
|
|
|
> Utility to investigate sockets
|
|
|
|
- Dump all TCP/UDP/RAW/UNIX sockets
|
|
|
|
`ss -a {{-t/-u/-w/-x}}`
|
|
|
|
- Show process(es) that using socket
|
|
|
|
`ss -p`
|
|
|
|
- Filter TCP sockets by states, only/exclude
|
|
|
|
`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}`
|
|
|
|
- Filter sockets by address and/or port
|
|
|
|
`ss -t dst 1.2.3.4:80`
|
|
|
|
`ss -u src 127/8`
|
|
|
|
`ss -t 'dport >= :1024'`
|
|
|
|
`ss -x "src /tmp/.X11-unix/*"`
|
|
|
|
`ss -t state established '( dport = :ssh or sport = :ssh )'`
|
|
|
|
- Only list IPv4 or IPv6 sockets
|
|
|
|
`ss {{-4/-6}}`
|