ubuntu find port used by process code example Example 1: ubuntu check process on port sudo lsof -i:22 Example 2: how to find process running on port in ubuntu sudo lsof -i:8080