how to get the port number of a process in lunux code example Example: ubuntu check process on port sudo lsof -i:22