mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
add ss.md
This commit is contained in:
parent
8fa2d0db24
commit
845668414f
1 changed files with 19 additions and 0 deletions
19
linux/ss.md
Normal file
19
linux/ss.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# ss
|
||||
|
||||
> Utility to investigate sockets
|
||||
|
||||
- Dump all TCP/UDP/RAW/UNIX sockets
|
||||
|
||||
`ss -a {{-t/-u/-w/-x}}`
|
||||
|
||||
- Filter TCP sockets by states, only/exclude
|
||||
|
||||
`ss {{state/exclude}} {{bucket/big/connected/synchronized/...}}`
|
||||
|
||||
- Filter sockets by address and/or port
|
||||
|
||||
`ss {{dst/src/dport/sport}} {{==/!=/>/</...}} {{prefix:port/unix:STRING/:port/...}}`
|
||||
|
||||
- Only list IPv4 or IPv6 sockets
|
||||
|
||||
`ss {{-4/-6}}`
|
Loading…
Add table
Reference in a new issue