Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
lsof
/
Who is using a port
Who is using a port
lsof
Find which process is listening on port 8080
lsof -i :8080
⎘ copy
#lsof
#linux
#network
#debug
more lsof
all 19 commands →
List all network connections
lsof -i -n -P
Find open files on a filesystem
lsof +D /var/log
Find deleted files still held open
lsof | grep '(deleted)'
ss: show listening sockets
ss -tlnp
ss: show all TCP connections
ss -tanp | grep ESTAB