mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 14:26:04 +02:00
ss: refine examples
This commit is contained in:
parent
845668414f
commit
c7a5da1353
1 changed files with 9 additions and 1 deletions
10
linux/ss.md
10
linux/ss.md
|
@ -6,13 +6,21 @@
|
|||
|
||||
`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 {{dst/src/dport/sport}} {{==/!=/>/</...}} {{prefix:port/unix:STRING/: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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue