List all network connections
Show all open network connections without DNS resolution
lsof -i -n -P
- tool
- lsof19 commands
More lsof commands
-
lsof +D /var/logShow all processes with open files under /var/log
-
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