Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
lsof
/
ss: show all TCP connections
ss: show all TCP connections
lsof
Filter established TCP connections with process info
ss -tanp | grep ESTAB
⎘ copy
#lsof
#linux
#network
more lsof
all 19 commands →
ss: show UDP sockets
ss -ulnp
ss: socket stats summary
ss -s
ss: filter by destination port
ss -tnp dst :443
Find owner of port
lsof -nP -i :<port>
All listening sockets
lsof -nP -iTCP -sTCP:LISTEN