mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
commit
03b587f538
1 changed files with 18 additions and 0 deletions
18
cheat/cheatsheets/ss
Normal file
18
cheat/cheatsheets/ss
Normal file
|
@ -0,0 +1,18 @@
|
|||
ss
|
||||
Utility to investigate sockets
|
||||
|
||||
Args
|
||||
-4/-6 list ipv4/ipv6 sockets
|
||||
-n numeric addresses instead of hostnames
|
||||
-l list listing sockets
|
||||
-u/-t/-x list udp/tcp/unix sockets
|
||||
-p Show process(es) that using socket
|
||||
|
||||
# show all listing tcp sockets including the corresponding process
|
||||
ss -tlp
|
||||
|
||||
# show all sockets connecting to 192.168.2.1 on port 80
|
||||
ss -t dst 192.168.2.1:80
|
||||
|
||||
# show all ssh related connection
|
||||
ss -t state established '( dport = :ssh or sport = :ssh )'
|
Loading…
Reference in a new issue