how to find process running on port in ubuntu code example Example 1: how to find process running on port in ubuntu sudo lsof -i:8080 Example 2: ubuntu get process on port lsof -i -P -n