Find open files on a filesystem
Show all processes with open files under /var/log
lsof +D /var/log
- tool
- lsof19 commands
More lsof commands
-
lsof | grep '(deleted)'Find files deleted but still held open by processes (disk bloat)
-
ss -tlnpShow TCP listening ports with process names
-
ss -tanp | grep ESTABFilter established TCP connections with process info
-
ss -ulnpList UDP listening ports with process names
-
ss -sPrint socket usage summary by state