linux check port number code example Example 1: ubuntu check process on port sudo lsof -i:22 Example 2: check what ports are open linux ## if you use linux sudo ss -tulw