Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
lsof
/
Find open files on a filesystem
Find open files on a filesystem
lsof
Show all processes with open files under /var/log
lsof +D /var/log
⎘ copy
#lsof
#linux
#debug
more lsof
all 19 commands →
Find deleted files still held open
lsof | grep '(deleted)'
ss: show listening sockets
ss -tlnp
ss: show all TCP connections
ss -tanp | grep ESTAB
ss: show UDP sockets
ss -ulnp
ss: socket stats summary
ss -s