Find who uses a port
Find which process uses port 8080
lsof -i :8080
- tool
- lsof19 commands
More lsof commands
-
lsof -i -n -PShow all open network connections without resolving hosts and port names
-
lsof +D /var/logShow all processes that have open files anywhere under /var/log
-
lsof | grep '(deleted)'Find files that were deleted but are still open in a process and still use disk space
-
ss -tlnpShow listening TCP ports with process names
-
ss -tanp | grep ESTABShow established TCP connections with process info